Skip to main content

Class SuperOfficeWebApiException

Namespace: SuperOffice.WebApi.Authorization.Exceptions
Assembly: SuperOffice.WebApi.Authorization.dll
Thrown when bad things happen in the API. Contains the HTTP error and any body we can read.

Inheritance

objectExceptionSuperOfficeWebApiException

Derived

SuperOfficeWebApiUnauthorizedException, SuperOfficeWebApiWrongSubdomainException

Implements

ISerializable

Inherited Members

Exception.GetBaseException(), Exception.ToString(), Exception.GetObjectData(SerializationInfo, StreamingContext), Exception.GetType(), Exception.Message, Exception.Data, Exception.InnerException, Exception.TargetSite, Exception.StackTrace, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.SerializeObjectState, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

SuperOfficeWebApiException()

Default - all blank

SuperOfficeWebApiException(string)

Message

Parameters

message string “halp!”

SuperOfficeWebApiException(SerializationInfo, StreamingContext)

Mandatory constructor to support ]

Parameters

info SerializationInfo context StreamingContext

SuperOfficeWebApiException(string, Exception)

Wrapper

Parameters

message string “Halp!” innerException Exception the real problem

SuperOfficeWebApiException(string, string, HttpResponseHeaders, string)

Details

Parameters

message string “Halp!” request string HTTP Request that triggered problem headers HttpResponseHeaders HTTP Response headers from failed request. Might contain clues. body string body (if any) of response. Might contain JSON

Properties

Body

Property Value

string

Headers

Property Value

HttpResponseHeaders

Request

Property Value

string