struct
ACP::Protocol::ErrorUpdate
- ACP::Protocol::ErrorUpdate
- ACP::Protocol::SessionUpdate
- Struct
- Value
- Object
Overview
Reports a non-fatal error to the client.
NOTE Not part of the ACP spec.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
-
.new(pull : JSON::PullParser)
Reports a non-fatal error to the client.
- .new(message : String, code : Int32 | Nil = nil, detail : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#code : Int32 | Nil
Optional error code for programmatic handling.
-
#code=(code : Int32 | Nil)
Optional error code for programmatic handling.
-
#detail : String | Nil
Optional additional detail or stack trace.
-
#detail=(detail : String | Nil)
Optional additional detail or stack trace.
-
#message : String
Error message text.
-
#message=(message : String)
Error message text.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
Instance methods inherited from struct ACP::Protocol::SessionUpdate
session_update : String
session_update,
session_update=(session_update : String)
session_update=,
type : String
type
Constructor methods inherited from struct ACP::Protocol::SessionUpdate
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(pull : JSON::PullParser)
#
Reports a non-fatal error to the client.
NOTE Not part of the ACP spec.
def self.new(message : String, code : Int32 | Nil = nil, detail : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#