tryGetRequestOptions method

RequestOptions? tryGetRequestOptions()

Implementation

RequestOptions? tryGetRequestOptions() {
  return switch (this) {
    BaseApiCancelException(:final options) => options,
    BaseApiBadResponseException(:final response) => response?.requestOptions,
    _ => null
  };
}