public class ConnectorException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
ConnectorException()
Default constructor.
|
ConnectorException(Message message)
Construct a new ConnectorException with a detailed message.
|
ConnectorException(Message message,
java.lang.Throwable cause)
Create a new ConnectorException from an existing exception and object
Message.
|
ConnectorException(java.lang.String message)
Constructor.
|
ConnectorException(java.lang.String error,
java.lang.String suggestion,
java.lang.Throwable t)
Create a new ConnectorException from an error text, suggestion text and
existing exception.
|
ConnectorException(java.lang.String message,
java.lang.Throwable cause)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
getDetailedError() |
java.lang.String |
getLocalizedMessage()
Returns the final message string.
|
java.lang.String |
getMessage()
Returns the final message string.
|
Message |
getMessageInstance()
Returns the actual Message object so it can be added to the message list
on another object.
|
Message |
getPossibleSuggestion() |
void |
setDetailedError(Message error) |
void |
setDetailedError(java.lang.String key,
java.lang.Object... args) |
void |
setLocalizedMessage(Message message) |
void |
setPossibleSuggestion(Message suggestion) |
void |
setPossibleSuggestion(java.lang.String key,
java.lang.Object... args) |
public ConnectorException()
public ConnectorException(java.lang.String message)
public ConnectorException(Message message)
message - detailed message with type Message.public ConnectorException(java.lang.String message,
java.lang.Throwable cause)
public ConnectorException(Message message,
java.lang.Throwable cause)
message - detailed message with type Message.cause - Throwable exception.public ConnectorException(java.lang.String error,
java.lang.String suggestion,
java.lang.Throwable t)
The error and suggestion being set here is used later to prepare well formatted exception message based on resource bundle key 'msg_with_suggestion' and 'msg_no_suggestion'. But all this happens lazily when openconnector exception gets converted to it's counterpart exception in sailpoint.connector.
error - ResourceBundle message key, or a plain text message containing
error details.suggestion - ResourceBundle message key, or a plain text message containing
hints to solve the error.t - Throwable object t can be provided at the time of calling
following constructor.public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic void setLocalizedMessage(Message message)
public Message getDetailedError()
public void setDetailedError(java.lang.String key,
java.lang.Object... args)
public void setDetailedError(Message error)
public Message getPossibleSuggestion()
public void setPossibleSuggestion(java.lang.String key,
java.lang.Object... args)
public void setPossibleSuggestion(Message suggestion)
public Message getMessageInstance()