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



339
340
341
# File 'zona.rb', line 339

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

Instance Attribute Details

- (Object) message (readonly)

Returns the value of attribute message



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

def message
  @message
end

Instance Method Details

- (String) to_s

Error message description

Returns:

  • (String)

    Error message description



344
345
346
# File 'zona.rb', line 344

def to_s()
    @message
end