public class ConnectorException extends ResourceException
getLocalizedMessage() which returns
a message localized for current user locale| Modifier and Type | Field and Description |
|---|---|
String |
localizedMessage |
| Constructor and Description |
|---|
ConnectorException(String message)
Creates a new ConnectorException object.
|
ConnectorException(String message,
String localizedString) |
ConnectorException(String message,
Throwable cause)
Constructs a new throwable with the specified detail message and cause
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedMessage() |
String |
toString()
We need to override
Throwable.toString() because it uses
getLocalizedMessage() instead of ResourceException.getMessage() as
specified in javadoc. |
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedExceptionaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic final String localizedMessage
public ConnectorException(String message)
message - the detail message. The detail message is saved for later retrieval by the
Throwable.getMessage() method.public ConnectorException(String message, Throwable cause)
message - the detail messagecause - a chained exception of type Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String toString()
Throwable.toString() because it uses
getLocalizedMessage() instead of ResourceException.getMessage() as
specified in javadoc. toString() in turn is used in
Throwable.printStackTrace() which would show localized message in the log
otherwise.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/connectivityfw/api
|
api
|
EP-PIN
|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
-
|
EP-CON-CF
|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
default
|
EP-CON-CF
|
Copyright 2021 SAP SE Complete Copyright Notice