Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
medup
v0.8.1
Devto
Client
ClientError
Connection
Error
InvalidContentError
Post
ServerError
Medium
Client
Collections
Media
Posts
Publications
Users
ClientError
Connection
ConnectionAPI
Error
InvalidContentError
ParagraphMetadata
Post
Paragraph
DropCapImage
Iframe
MixtapeMetadata
ParagraphMarkup
Tag
PostBodyModel
PostContent
PostVirtuals
ServerError
User
Medup
Client
Command
Context
Options
Post
Settings
Tool
Built with Crystal 1.9.2
2023-10-08 14:48:30 UTC
class
Medium::Error
Medium::Error
Exception
Reference
Object
Direct Known Subclasses
Medium::ClientError
Medium::ServerError
Defined in:
medium/error.cr
Constant Summary
VALID_TYPES
=
[
"text/json"
,
"application/json"
]
Constructors
.new
(response : HTTP::Client::Response =
nil
)
Class Method Summary
.from_response
(response : HTTP::Client::Response)
.json
(response)
Instance Method Summary
#build_error_message
#response_error
Constructor Detail
def self.
new
(response : HTTP::Client::Response =
nil
)
#
[
View source
]
Class Method Detail
def self.
from_response
(response : HTTP::Client::Response)
#
[
View source
]
def self.
json
(response)
#
[
View source
]
Instance Method Detail
def
build_error_message
#
[
View source
]
def
response_error
#
[
View source
]