PrismatIQ::Error
Inherits YAML::Serializable < JSON::Serializable < Struct < Value < Object
Constructors
corrupted_image(details : String | Nil = nil) : Error
empty_palette(width : Int32 | Nil = nil, height : Int32 | Nil = nil, source : String | Nil = nil) : Error
Creates an error for images that contain no opaque pixels (all transparent) or have zero dimensions.
file_not_found(path : String, message : String | Nil = nil) : Error
from_exception(ex : Exception, field : String | Nil = nil, value : String | Nil = nil) : Error
from_exception_for_io(ex : Exception, context : String = "IO") : Error
from_exception_with_path(ex : Exception, path : String) : Error
image_too_large(width : Int32, height : Int32, max_width : Int32, max_height : Int32) : Error
invalid_image_path(path : String, reason : String | Nil = nil) : Error
invalid_options(field : String, value : String, reason : String) : Error
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(type : ErrorType, message : String, context : Hash(String, String) | Nil = nil)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
processing_failed(details : String) : Error
ssrf_blocked(url : String, ip : String, reason : String) : Error
unsupported_format(format : String) : Error
Instance methods
context
message
to_s(io : IO)
Same as #inspect(io).
type