Class: Zona::Error

Inherits:
Object
  • Object
show all
Defined in:
zona.rb

Overview

The Error Class represents a generic error in the Zona library. It contains a readable representation of the error.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Error) initialize(message = nil)

A new instance of Error

Parameters:

  • A (String)

    description of the error



331
332
333
# File 'zona.rb', line 331

def initialize(message=nil)
    @message=message
end

Instance Attribute Details

- (Object) message (readonly)

Returns the value of attribute message



328
329
330
# File 'zona.rb', line 328

def message
  @message
end

Instance Method Details

- (String) to_s

Error message description

Returns:

  • (String)

    Error message description



336
337
338
# File 'zona.rb', line 336

def to_s()
    @message
end