Exception: Cute::G5K::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cute/g5k_api.rb

Overview

Cute::G5K exceptions

The generated exceptions are divided in 5 groups:

  • BadRequest it means that the syntax you passed to some G5K::API method is not correct from the Grid’5000 services point of view.

  • RequestFailed it means that there is a server problem or there is nothing the user can do to solve the problem.

  • NotFound it means that the requested resources do not exist.

  • Unauthorized it means that there is an authentication problem.

  • EventTimeout this exception is triggered by the methods that wait for events such as: job submission and environment deployment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, object = nil) ⇒ Error

Returns a new instance of Error.



30
31
32
33
# File 'lib/cute/g5k_api.rb', line 30

def initialize(message = nil, object = nil)
  super(message)
  self.orig = object
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) ⇒ Object



35
36
37
# File 'lib/cute/g5k_api.rb', line 35

def method_missing(method)
  return orig.send(method)
end

Instance Attribute Details

#origObject

Original exception



28
29
30
# File 'lib/cute/g5k_api.rb', line 28

def orig
  @orig
end