Package org.moeaframework.core
Class FrameworkException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.moeaframework.core.FrameworkException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlgorithmException
,ConfigurationException
,GrammarException
,NoValidNodeException
,ProblemException
,PropertyNotFoundException
,ProviderLookupException
,ProviderNotFoundException
,UnsatisfiedArgumentException
The framework exception is the parent type of all exceptions specific to the MOEA Framework. Framework exceptions
only cover exceptional cases caused by the MOEA Framework itself; user exceptions are still covered by Java's
built-in exceptions (i.e.,
IllegalArgumentException
) or those defined in third-party libraries. Unhandled
checked exceptions, such as IOException
, should be wrapped in an appropriate framework exception.- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new framework exception with no message or cause.FrameworkException
(String message) Constructs a new framework exception with the specified message.FrameworkException
(String message, Throwable cause) Constructs a new framework exception with the specified message and cause.FrameworkException
(Throwable cause) Constructs a new framework exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FrameworkException
public FrameworkException()Constructs a new framework exception with no message or cause. -
FrameworkException
Constructs a new framework exception with the specified message and cause.- Parameters:
message
- the message describing this exceptioncause
- the cause of this exception
-
FrameworkException
Constructs a new framework exception with the specified message.- Parameters:
message
- the message describing this exception
-
FrameworkException
Constructs a new framework exception with the specified cause.- Parameters:
cause
- the cause of this exception
-