ContentTypeMismatchedException class final

An exception implement under ClientException that using invalid content type from given uri.

Implemented types

Constructors

ContentTypeMismatchedException(Uri uri, String? receivedContentType, Set<String> idealContentType)
Construct an exception when using incorrect content type.

Properties

hashCode int
The hash code for this object.
no setterinherited
idealContentType Set<String>
Specify a Set with MIME String which required for following process.
final
message String
Message displayed to inform invalid content type should not be accepted.
no setter
receivedContentType String?
Content type value from response of uri.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
An Uri which locates to invalid content type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited