class
Amazonite::Lambda::ErrorObject
- Amazonite::Lambda::ErrorObject
- Reference
- Object
Overview
An object that contains error information.
Included Modules
- JSON::Serializable
Defined in:
lambda/error_object.crConstructors
- .new(pull : JSON::PullParser)
- .new(error_message : String | Nil = nil, error_type : String | Nil = nil, error_data : String | Nil = nil, stack_trace : Array(String) | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#error_data : String | Nil
Machine-readable error data.
-
#error_data=(error_data : String | Nil)
Machine-readable error data.
-
#error_message : String | Nil
A human-readable error message.
-
#error_message=(error_message : String | Nil)
A human-readable error message.
-
#error_type : String | Nil
The error type.
-
#error_type=(error_type : String | Nil)
The error type.
-
#hash(hasher)
See
Object#hash(hasher) -
#stack_trace : Array(String) | Nil
Stack trace information for the error.
-
#stack_trace=(stack_trace : Array(String) | Nil)
Stack trace information for the error.
- #validate! : Nil
Constructor Detail
def self.new(error_message : String | Nil = nil, error_type : String | Nil = nil, error_data : String | Nil = nil, stack_trace : Array(String) | Nil = nil)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.