API version:
Show / Hide Table of Contents

Class OktaOAuthException

An exception wrapping an error returned by the Okta OAuth API.

Inheritance
System.Object
System.Exception
OktaException
OktaOAuthException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Okta.Sdk
Assembly: Okta.Sdk.dll
Syntax
public class OktaOAuthException : OktaException, ISerializable

Constructors

OktaOAuthException(Int32, IOAuthApiError)

Initializes a new instance of the OktaOAuthException class.

Declaration
public OktaOAuthException(int statusCode, IOAuthApiError error)
Parameters
Type Name Description
System.Int32 statusCode

The status code.

IOAuthApiError error

the error.

Properties

Error

Gets the error code from the Error object.

Declaration
public string Error { get; }
Property Value
Type Description
System.String

The error.

ErrorDescription

Gets the error code from the Error object.

Declaration
public string ErrorDescription { get; }
Property Value
Type Description
System.String

The error description.

StatusCode

Gets the HTTP status code.

Declaration
public int StatusCode { get; }
Property Value
Type Description
System.Int32

The HTTP status code.

Implements

System.Runtime.Serialization.ISerializable
Back to top Copyright © 2021 Okta, Inc.
Generated with DocFx.