ResponseFormatException class
An exception that is raised when a response to a request returns with a body that cannot successfully be encoded or decoded based on the expected content-type.
- Implemented types
Constructors
- ResponseFormatException(MediaType? contentType, Encoding? encoding, {String? body, Uint8List? bytes})
- Construct a new instance of ResponseFormatException using information from the body of the response.
Properties
- body → String?
- 
  
  final
- bytes → Uint8List?
- 
  
  final
- contentType → MediaType?
- 
  
  final
- encoding → Encoding?
- 
  
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- message → String
- 
  Error message that includes the content-type an encoding
  no setter
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
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