Module

Exception2MessageMapper::E2MM

Inheritance

Methods

Class

Visibility Signature
public Raise (klass = E2MM, err = nil, *rest)
public def_e2message (k, c, m)
public def_exception (k, n, m, s = StandardError)
public e2mm_message (klass, exp)
public extend_object (cl)
public extend_to (b)

Class Method Detail

Raise(klass = E2MM, err = nil, *rest)

Fail(klass, err, *rest)

    klass:  class to define exception under.
    err:        exception
    rest:       message arguments

def_e2message(k, c, m)

E2MM.def_exception(k, e, m)

        k:  class to define exception under.
        e:  exception
        m:  message_form
    define exception c with message m.

def_exception(k, n, m, s = StandardError)

E2MM.def_exception(k, n, m, s)

        k:  class to define exception under.
        n:  exception_name
        m:  message_form
        s:      superclass(default: StandardError)
    define exception named ``c'' with message m.

e2mm_message(klass, exp)

extend_object(cl)

extend_to(b)

backward compatibility