Skip to main content

Class SuperOfficeWebApiUnauthorizedException

Namespace: SuperOffice.WebApi.Authorization.Exceptions
Assembly: SuperOffice.WebApi.Authorization.dll
Thrown when auth not accepted. Contains the HTTP error and headers and any body we can read.

Inheritance

objectExceptionSuperOfficeWebApiExceptionSuperOfficeWebApiUnauthorizedException

Implements

ISerializable

Inherited Members

SuperOfficeWebApiException.Request, SuperOfficeWebApiException.Headers, SuperOfficeWebApiException.Body, 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

SuperOfficeWebApiUnauthorizedException()

Default - all blank

SuperOfficeWebApiUnauthorizedException(string)

Message

Parameters

message string “halp!”

SuperOfficeWebApiUnauthorizedException(string, Exception)

Wrapper

Parameters

message string “Halp!” innerException Exception the real problem

SuperOfficeWebApiUnauthorizedException(SerializationInfo, StreamingContext)

Mandatory constructor to support ]

Parameters

info SerializationInfo context StreamingContext

SuperOfficeWebApiUnauthorizedException(string, string, HttpResponseHeaders, string)

Details

Parameters

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