GenericException

public class GenericException extends Exception

GenericException represents all kinds of non-runtime exception in the application.

Author:Hugo Y. K. Lam

Constructors

GenericException

public GenericException()

Creates a new instance of GenericException.

GenericException

public GenericException(String message)

Creates a new instance of GenericException.

Parameters:
  • message – the error message.

GenericException

public GenericException(Throwable cause)

Creates a new instance of GenericException.

Parameters:
  • cause – the cause of this exception.

GenericException

public GenericException(String message, Throwable cause)

Creates a new instance of GenericException.

Parameters:
  • message – the error message.
  • cause – the cause of this exception.

Methods

toString

public String toString()

Returns a string representation of this exception.

Returns:a string representation of this exception.

See also: java.lang.Object.toString()