Class InitializationException

All Implemented Interfaces:
Serializable

public class InitializationException extends AppException
This exception is used to notify that an object could not be created.
Since:
5.1
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • InitializationException

      public InitializationException(ErrorCode code, String[] parameters)
      Constructs the initialization exception with an ErrorCode and parameters. The error code can be printed in various languages.
      Parameters:
      code - The error code object.
      parameters - A string array representing the parameters which can be inserted in the error code object.
    • InitializationException

      public InitializationException(ErrorCode code, String[] parameters, Severity severity)
      Constructs the initialization exception with an ErrorCode and parameters. The error code can be printed in various languages.
      Parameters:
      code - The error code object.
      parameters - A string array representing the parameters which can be inserted in the error code object.
      severity - The severity of the exception.
    • InitializationException

      public InitializationException(InitializationException error, Severity severity, IInitializationReport report)
      Constructs the initialization exception with another InitializationException and a report containing more information.
      Parameters:
      error - The original InitializationException, may not be null.
      severity - The severity, may be null.
      report - The (optional) report containing more information, may be null.
      Since:
      8.4.3
    • InitializationException

      protected InitializationException(ErrorMessage message, Severity severity)
  • Method Details

    • getErrorMessage

      public ErrorMessage getErrorMessage()
      Returns the error message for this exception.
      Returns:
      The ErrorMessage which can be converted to a string representation.
    • getSeverity

      public Severity getSeverity()
      This method returns the severity for the exception.
      Returns:
      the severity of the initialization exception.
    • getReport

      public IInitializationReport getReport()
      This method return the (optional) initialization report containing more information.
      Returns:
      The report, may be null.
      Since:
      8.4.3