MastodonException constructor

MastodonException(
  1. String message,
  2. BaseResponse response, [
  3. String? body
])

Returns the new instance of MastodonException.

Implementation

MastodonException(this.message, this.response, [String? body])
    : body = response is Response ? response.body : body;