UnsupportedCrypto class

From m204wiki
Jump to navigation Jump to search

The UnsupportedCrypto exception class describes an exception associated with finding a request for a cipher that is not supported by the hardware. This is purely a machine configuration issue: if the machine involved is configured to support the cipher required by the method, no exception is thrown.

To produce an UnsupportedCrypto exception yourself, you typically use a SOUL Throw statement with an UnsupportedCrypto New constructor. This statement must be issued from within a method, and it can only be caught by the code that calls the method. For example, the following statement throws an UnsupportedCrypto exception:

throw %(UnsupportedCrypto):new

The UnsupportedCrypto methods

The following are the available UnsupportedCrypto class methods.

NewCreate a new UnsupportedCrypto object

The methods in the class are described in the subsections that follow. In addition:

New constructor

Create a new UnsupportedCrypto object (UnsupportedCrypto class)

This Constructor generates an instance of an UnsupportedCrypto exception. As shown below, the New method takes no arguments.


%unsupportedCrypto = [%(UnsupportedCrypto):]New

Syntax terms

%unsupportedCrypto A reference to an instance of an UnsupportedCrypto object.
[%(UnsupportedCrypto):]The class name in parentheses denotes a Constructor.