ModuleException

public class ModuleException extends RuntimeException

ModuleException represents a module’s runtime exception.

Author:Hugo Y. K. Lam

Constructors

ModuleException

public ModuleException()

Creates a new instance of ModuleException.

ModuleException

public ModuleException(String message)

Creates a new instance of ModuleException.

Parameters:
  • message – the error message.

ModuleException

public ModuleException(Throwable cause)

Creates a new instance of ModuleException.

Parameters:
  • cause – the cause of this exception.

ModuleException

public ModuleException(String message, Throwable cause)

Creates a new instance of ModuleException.

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()