Show / Hide Table of Contents

Class OciException

Exceptions from the SDK.

Inheritance
object
Exception
OciException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Oci.Common.Model
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class OciException : Exception, ISerializable

Constructors

OciException(HttpStatusCode, string, string, Exception)

Declaration
public OciException(HttpStatusCode statusCode, string message, string opcRequestId, Exception innerException)
Parameters
Type Name Description
HttpStatusCode statusCode
string message
string opcRequestId
Exception innerException

OciException(HttpStatusCode, string, string, string)

Declaration
public OciException(HttpStatusCode statusCode, string message, string serviceCode, string opcRequestId)
Parameters
Type Name Description
HttpStatusCode statusCode
string message
string serviceCode
string opcRequestId

OciException(HttpStatusCode, string, string, string, ApiDetails)

Declaration
public OciException(HttpStatusCode statusCode, string message, string serviceCode, string opcRequestId, ApiDetails apiDetails)
Parameters
Type Name Description
HttpStatusCode statusCode
string message
string serviceCode
string opcRequestId
ApiDetails apiDetails

OciException(HttpStatusCode, string, string, string, Exception)

Declaration
public OciException(HttpStatusCode statusCode, string message, string serviceCode, string opcRequestId, Exception innerException)
Parameters
Type Name Description
HttpStatusCode statusCode
string message
string serviceCode
string opcRequestId
Exception innerException

OciException(string, Exception)

Declaration
public OciException(string message, Exception innerException)
Parameters
Type Name Description
string message
Exception innerException

OciException(string, string, string, Exception)

Declaration
public OciException(string message, string serviceCode, string opcRequestId, Exception innerException)
Parameters
Type Name Description
string message
string serviceCode
string opcRequestId
Exception innerException

Properties

ApiDetails

The Api Deatils for the operation being currently used.

Declaration
public ApiDetails ApiDetails { get; }
Property Value
Type Description
ApiDetails

OpcRequestId

The opc-request-id header returned by the service that should be provided for support requests.

Declaration
public string OpcRequestId { get; }
Property Value
Type Description
string

ServiceCode

Service specific code returned. Null if the client timed out or failed to get a response from the service.

Declaration
public string ServiceCode { get; }
Property Value
Type Description
string

StatusCode

The HTTP status code.

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type Description
HttpStatusCode

Methods

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
Exception.ToString()

Implements

ISerializable
In this article
Back to top