Class FlexCheckedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
flexagon.ff.common.core.exceptions.FlexCheckedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FlexNotFoundException,FlexRemotePluginException
Base class for all FlexDeploy Checked Exceptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.FlexCheckedException(String pMessage) Creates an exception with the given message.FlexCheckedException(String pMessage, boolean pLogOnInit) Creates an exception with the given messageFlexCheckedException(String pCode, String pMessage) Creates an exception with the given name and code.FlexCheckedException(String pCode, String pMessage, Throwable pThrowable) Creates an exception with the given code, message, and cause.FlexCheckedException(String pMessage, Throwable pThrowable) Creates an exception with the given message and cause.FlexCheckedException(Throwable pThrowable) Creates an exception with the given cause -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlexCheckedException
public FlexCheckedException()Default constructor. Logs on initialization by default. -
FlexCheckedException
Creates an exception with the given message- Parameters:
pMessage- the exception messagepLogOnInit- whether to log on initialization
-
FlexCheckedException
Creates an exception with the given message. Logs on initialization by default.- Parameters:
pMessage- the exception message
-
FlexCheckedException
Creates an exception with the given name and code. The code is intended to uniquely identify a place in code where the exception originated, eliminating the need for a Stacktrace to identify the source. A code should identify the vendor and have a unique numeric code. For example, Flexagon/FlexDeploy uses- (e.g. FDML-15001). - Parameters:
pCode- - a short code uniquely identifying where an exception is raised.pMessage- - an exception message.
-
FlexCheckedException
Creates an exception with the given cause- Parameters:
pThrowable- the cause of the exception
-
FlexCheckedException
Creates an exception with the given message and cause.- Parameters:
pMessage- the exception messagepThrowable- the cause of the exception
-
FlexCheckedException
Creates an exception with the given code, message, and cause. The code is intended to uniquely identify a place in code where the exception originated, eliminating the need for a Stacktrace to identify the source. A code should identify the vendor and have a unique numeric code. For example, Flexagon/FlexDeploy uses- (e.g. FDML-15001). - Parameters:
pCode- the exception codepMessage- the exception messagepThrowable- the cause of the exception
-
-
Method Details
-
setCode
Sets the exception code.- Parameters:
pCode- the exception code
-
getCode
Returns the exception code.- Returns:
- the exception code
-
getMessage
- Overrides:
getMessagein classThrowable
-
log
protected void log()Logs exception information on initialization -
logOnInit
protected boolean logOnInit()Checks whether to log on initialization of this exception- Returns:
- true if set to log on initialization; false otherwise
-
getPlainMessage
Returns error message without exception code.- Returns:
- the exception method without the exception code
-