MOEA Framework 2.12
API Specification

org.moeaframework.problem
Class ProblemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.moeaframework.core.FrameworkException
                  extended by org.moeaframework.problem.ProblemException
All Implemented Interfaces:
Serializable

public class ProblemException
extends FrameworkException

An exception that originated from a problem.

See Also:
Serialized Form

Constructor Summary
ProblemException(Problem problem)
          Constructs an problem exception originating from the specified problem.
ProblemException(Problem problem, String message)
          Constructs an problem exception originating from the specified problem with the given message.
ProblemException(Problem problem, String message, Throwable cause)
          Constructs an problem exception originating from the specified problem with the given cause.
ProblemException(Problem problem, Throwable cause)
          Constructs an problem exception originating from the specified problem with the given cause.
 
Method Summary
 Problem getProblem()
          Returns the problem responsible for this exception.
 
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

ProblemException

public ProblemException(Problem problem)
Constructs an problem exception originating from the specified problem.

Parameters:
problem - the problem responsible for this exception

ProblemException

public ProblemException(Problem problem,
                        String message,
                        Throwable cause)
Constructs an problem exception originating from the specified problem with the given cause.

Parameters:
problem - the problem responsible for this exception
cause - the cause of this exception

ProblemException

public ProblemException(Problem problem,
                        String message)
Constructs an problem exception originating from the specified problem with the given message.

Parameters:
problem - the problem responsible for this exception
message - the message describing this exception

ProblemException

public ProblemException(Problem problem,
                        Throwable cause)
Constructs an problem exception originating from the specified problem with the given cause.

Parameters:
problem - the problem responsible for this exception
cause - the cause of this exception
Method Detail

getProblem

public Problem getProblem()
Returns the problem responsible for this exception.

Returns:
the problem responsible for 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!