Package org.tweetyproject.lp.nlp.error
Class NestedLogicProgramException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tweetyproject.logics.commons.error.LanguageException
org.tweetyproject.lp.nlp.error.NestedLogicProgramException
- All Implemented Interfaces:
Serializable
NestedLogicProramException encapsulates those LanugageException that occur
in nested logic programs. It allows easier creation of language specific
exceptions. The language registered at the base exception is
"Nested Logic Programs".
- Author:
- Tim Janus
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.tweetyproject.logics.commons.error.LanguageException
LanguageException.LanguageExceptionReason
-
Constructor Summary
ConstructorDescriptionConstructs a new `NestedLogicProgramException` with the specified reason.NestedLogicProgramException
(LanguageException.LanguageExceptionReason reason, String furtherInformation) Constructs a new `NestedLogicProgramException` with the specified reason and additional information. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NestedLogicProgramException
Constructs a new `NestedLogicProgramException` with the specified reason.This constructor initializes the exception with a specific reason for the error, which is provided by the `LanguageExceptionReason` enum. The language is automatically set to "Nested Logic Programs".
- Parameters:
reason
- the reason for the exception, represented by an enum value from `LanguageExceptionReason`.
-
NestedLogicProgramException
public NestedLogicProgramException(LanguageException.LanguageExceptionReason reason, String furtherInformation) Constructs a new `NestedLogicProgramException` with the specified reason and additional information.This constructor initializes the exception with a specific reason for the error and additional information that provides more context about the error. The language is automatically set to "Nested Logic Programs".
- Parameters:
reason
- the reason for the exception, represented by an enum value from `LanguageExceptionReason`.furtherInformation
- additional information about the error, typically used to provide more specific details in the error message.
-