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
Generated using Crystal 1.14.0
2024-11-26 10:35:35 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
]