MOEA Framework 2.12
API Specification

org.moeaframework.core
Class FrameworkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.moeaframework.core.FrameworkException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlgorithmException, GrammarException, ProblemException, ProviderLookupException, ProviderNotFoundException, ValidationException

public class FrameworkException
extends RuntimeException

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:
Serialized Form

Constructor Summary
FrameworkException()
          Constructs 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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrameworkException

public FrameworkException()
Constructs a new framework exception with no message or cause.


FrameworkException

public FrameworkException(String message,
                          Throwable cause)
Constructs a new framework exception with the specified message and cause.

Parameters:
message - the message describing this exception
cause - the cause of this exception

FrameworkException

public FrameworkException(String message)
Constructs a new framework exception with the specified message.

Parameters:
message - the message describing this exception

FrameworkException

public FrameworkException(Throwable cause)
Constructs a new framework exception with the specified cause.

Parameters:
cause - the cause of this exception

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!