class Amazonite::Lambda::ErrorObject

Overview

An object that contains error information.

Included Modules

Defined in:

lambda/error_object.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(error_message : String | Nil = nil, error_type : String | Nil = nil, error_data : String | Nil = nil, stack_trace : Array(String) | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def error_data : String | Nil #

Machine-readable error data.


[View source]
def error_data=(error_data : String | Nil) #

Machine-readable error data.


[View source]
def error_message : String | Nil #

A human-readable error message.


[View source]
def error_message=(error_message : String | Nil) #

A human-readable error message.


[View source]
def error_type : String | Nil #

The error type.


[View source]
def error_type=(error_type : String | Nil) #

The error type.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def stack_trace : Array(String) | Nil #

Stack trace information for the error.


[View source]
def stack_trace=(stack_trace : Array(String) | Nil) #

Stack trace information for the error.


[View source]
def validate! : Nil #

[View source]