PP.Exception

Syntax

Exception(message: String, self: Object);

Parameters

message. Message passed to exception. This is an optional parameter, by default its value is not defined.

self. Exception source. This is an optional parameter, by default its value is not defined.

Description

The Exception method is the exception thrown if some values are invalid.

Comments

This method returns a String value in the following format: Exception. Source: [Exception source] Message: [Message to be shown].

Example

The example of use is given in the with description of the static method PP.isDate.

See also:

PP