Exception: Almapi::AlmapiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/almapi/almapi_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "This is an AlmpiError", exception_type = "AlmpiError") ⇒ AlmapiError

Initializes a new AlmapiError object

Parameters:

  • msg (String) (defaults to: "This is an AlmpiError")

    : error message

  • exception_type (String) (defaults to: "AlmpiError")

    : exception type.



10
11
12
13
# File 'lib/almapi/almapi_error.rb', line 10

def initialize(msg = "This is an AlmpiError", exception_type = "AlmpiError")
  @exception_type = exception_type
  super(msg) # Calling initialize in StandardError
end