com.sapportals.connector

Class ConnectorRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sapportals.connector.ConnectorRuntimeException
All Implemented Interfaces:
Serializable

public class ConnectorRuntimeException
extends RuntimeException

Connector runtime exception This exception overrides getLocalizedMessage() which returns a message localized for current user locale

See Also:
Serialized Form

Constructor Summary
ConnectorRuntimeException(String message)
           
ConnectorRuntimeException(String message, String localizedString)
           
ConnectorRuntimeException(String message, String localizedString, Throwable cause)
           
ConnectorRuntimeException(String message, Throwable cause)
           
 
Method Summary
 Exception getLinkedException()
           
 String getLocalizedMessage()
           
 String getMessage()
           
 void setLinkedException(Throwable cause)
           
 String toString()
          We need to override Throwable.toString() because it uses getLocalizedMessage() instead of getMessage() as specified in javadoc.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectorRuntimeException

public ConnectorRuntimeException(String message,
                                 Throwable cause)

ConnectorRuntimeException

public ConnectorRuntimeException(String message)

ConnectorRuntimeException

public ConnectorRuntimeException(String message,
                                 String localizedString)

ConnectorRuntimeException

public ConnectorRuntimeException(String message,
                                 String localizedString,
                                 Throwable cause)
Method Detail

getLinkedException

public Exception getLinkedException()

setLinkedException

public void setLinkedException(Throwable cause)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

toString

public String toString()
We need to override Throwable.toString() because it uses getLocalizedMessage() instead of getMessage() as specified in javadoc. toString() in turn is used in Throwable.printStackTrace() which would show localized message in the log otherwise.

Overrides:
toString in class Throwable
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] FRAMEWORK-EXT [sap.com] tc/conn/connectorframeworkdeprecated - EP-CON-CF
[sap.com] FRAMEWORK-EXT [sap.com] tc/conn/connectorframeworkdeprecated default EP-CON-CF
[sap.com] EP-BASIS-API [sap.com] tc/epbc/connectivityfw/api api EP-PIN


Copyright 2012 SAP AG Complete Copyright Notice