Exception: GQL::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- GQL::Error
- Defined in:
- lib/gql/errors.rb
Direct Known Subclasses
GQL::Errors::InvalidClass, GQL::Errors::NotFoundError, GQL::Errors::RootClassNotSet, GQL::Errors::ScanError, GQL::Errors::SyntaxError, GQL::Errors::UnknownFieldType
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(msg, code = 100, handle = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, code = 100, handle = nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/gql/errors.rb', line 8 def initialize(msg, code = 100, handle = nil) @code, @handle = code, handle super(msg) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/gql/errors.rb', line 6 def code @code end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
6 7 8 |
# File 'lib/gql/errors.rb', line 6 def handle @handle end |