libperun

Class std.rt.Exception

Synopsis

public abstract class Exception

Base class for all exceptions. All objects passed to the throw statement must derive from this, and likewise any exceptions caught in a catch statement must be of types derived from this.

Fields

Constructors

public Exception();

Default constructor. Sets the message to an empty string.

public Exception(String msg);

Constructor taking the message as an argument.

Methods

public final String getMessage();

Get the exception message.