InitializationException

public class InitializationException extends Exception

Exception class representing the error during initialization.

Author:kcyee

Constructors

InitializationException

public InitializationException(String msg)

Construtor with message.

Parameters:
  • msg – the message of the exception

InitializationException

public InitializationException(String msg, Exception e)

Instantiate the exception with a nested exception

Parameters:
  • msg – the message of the exception
  • e – the exception to be wrapped

Methods

getMessage

public String getMessage()

It overrides the getMessage() method so it also reports the nested exception , if it exists.

Returns:the exception message.

getNestedException

public Exception getNestedException()
Returns:the nested exception