Exception: Neography::NeographyError
- Inherits:
-
StandardError
- Object
- StandardError
- Neography::NeographyError
- Defined in:
- lib/neography/errors.rb
Direct Known Subclasses
BadInputException, DeadlockDetectedException, NoSuchPropertyException, NodeNotFoundException, NotFoundException, OperationFailureException, ParameterNotFoundException, PropertyValueException, RelationshipNotFoundException, SyntaxException, UnauthorizedError, UniquePathNotUniqueException, UnknownBatchOptionException
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#stacktrace ⇒ Object
readonly
Returns the value of attribute stacktrace.
Instance Method Summary collapse
-
#initialize(message = nil, code = nil, stacktrace = nil, request = nil, index = 0) ⇒ NeographyError
constructor
A new instance of NeographyError.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, code = nil, stacktrace = nil, request = nil, index = 0) ⇒ NeographyError
Returns a new instance of NeographyError.
6 7 8 9 10 11 12 |
# File 'lib/neography/errors.rb', line 6 def initialize( = nil, code = nil, stacktrace = nil, request = nil, index = 0) @message = @code = code @stacktrace = stacktrace @request = request @index = index end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/neography/errors.rb', line 4 def code @code end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
4 5 6 |
# File 'lib/neography/errors.rb', line 4 def index @index end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/neography/errors.rb', line 4 def @message end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
4 5 6 |
# File 'lib/neography/errors.rb', line 4 def request @request end |
#stacktrace ⇒ Object (readonly)
Returns the value of attribute stacktrace.
4 5 6 |
# File 'lib/neography/errors.rb', line 4 def stacktrace @stacktrace end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/neography/errors.rb', line 14 def to_s "NeographyError: \n--message: #{@message}, \n--code: #{@code}, \n--stacktrace: #{@stacktrace}, \n--request: #{@request}, \n--index: #{@index}" end |