Class NestedLogicProgramException

All Implemented Interfaces:
Serializable

public class NestedLogicProgramException extends LanguageException
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:
  • Constructor Details

    • NestedLogicProgramException

      public NestedLogicProgramException(LanguageException.LanguageExceptionReason reason)
      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.