Exception: Apes::Errors::BaseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/apes/errors.rb

Overview

The base error.

Direct Known Subclasses

BadRequestError, InvalidDataError, MissingDataError

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (BaseError) initialize(details = nil)

Creates a new error.

Parameters:

  • details (Object) (defaults to: nil)

    The details of this error.



16
17
18
19
# File 'lib/apes/errors.rb', line 16

def initialize(details = nil)
  super("")
  @details = details
end

Instance Attribute Details

- (Object) details (readonly)

Returns the value of attribute details



11
12
13
# File 'lib/apes/errors.rb', line 11

def details
  @details
end