class FleetApp::ErrorResult

Overview

The "sad" result from an API call.

Included Modules

Defined in:

fleet_app/error_result.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(message : String, status_code : Int32 = 500) #

[View source]

Instance Method Detail

def message : String #

[View source]
def status_code : Int32 #

[View source]
def success? #

Returns true if #status_code is 200, false otherwise.


[View source]