Exception: Cute::G5K::Error
- Inherits:
-
Exception
- Object
- Exception
- Cute::G5K::Error
- 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.
Direct Known Subclasses
BadRequest, EventTimeout, NotFound, RequestFailed, Unauthorized
Instance Attribute Summary collapse
-
#orig ⇒ Object
Original exception.
Instance Method Summary collapse
-
#initialize(message = nil, object = nil) ⇒ Error
constructor
A new instance of Error.
- #method_missing(method) ⇒ Object
Constructor Details
#initialize(message = nil, object = nil) ⇒ Error
Returns a new instance of Error.
24 25 26 27 |
# File 'lib/cute/g5k_api.rb', line 24 def initialize( = nil, object = nil) super() self.orig = object end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
29 30 31 |
# File 'lib/cute/g5k_api.rb', line 29 def method_missing(method) return orig.send(method) end |
Instance Attribute Details
#orig ⇒ Object
Original exception
22 23 24 |
# File 'lib/cute/g5k_api.rb', line 22 def orig @orig end |