Class MessagingConnectorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.ametys.plugins.messagingconnector.MessagingConnectorException
-
- All Implemented Interfaces:
Serializable
public class MessagingConnectorException extends RuntimeException
Common exception for all messaging connectors.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessagingConnectorException.ExceptionType
Information about the exception
-
Constructor Summary
Constructors Constructor Description MessagingConnectorException(String message)
Constructs a new exception with the specified detail message.MessagingConnectorException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.MessagingConnectorException(String message, MessagingConnectorException.ExceptionType type)
Constructs a new exception with the specified detail message.MessagingConnectorException(String message, MessagingConnectorException.ExceptionType type, Throwable cause)
Constructs a new exception with the specified detail message and cause.MessagingConnectorException(Throwable cause)
Constructs a new exception with the specified cause.MessagingConnectorException(MessagingConnectorException.ExceptionType type, Throwable cause)
Constructs a new exception with the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagingConnectorException.ExceptionType
getType()
Get the type of exceptionDynamicInformationException
toDynamicInformationException()
Create a DynamicInformationException from this MessagingConnectorException-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MessagingConnectorException
public MessagingConnectorException(String message)
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message.
-
MessagingConnectorException
public MessagingConnectorException(String message, MessagingConnectorException.ExceptionType type)
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message.type
- reason of the exception
-
MessagingConnectorException
public MessagingConnectorException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- the cause.
-
MessagingConnectorException
public MessagingConnectorException(String message, MessagingConnectorException.ExceptionType type, Throwable cause)
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message.type
- reason of the exceptioncause
- the cause.
-
MessagingConnectorException
public MessagingConnectorException(Throwable cause)
Constructs a new exception with the specified cause.- Parameters:
cause
- the specified cause.
-
MessagingConnectorException
public MessagingConnectorException(MessagingConnectorException.ExceptionType type, Throwable cause)
Constructs a new exception with the specified cause.- Parameters:
type
- reason of the exceptioncause
- the specified cause.
-
-
Method Detail
-
getType
public MessagingConnectorException.ExceptionType getType()
Get the type of exception
-
toDynamicInformationException
public DynamicInformationException toDynamicInformationException()
Create a DynamicInformationException from this MessagingConnectorException- Returns:
- a new DynamicInformationException
-
-