Show / Hide Table of Contents

Class ServiceUsageException

ServiceUsageException is thrown when either Service usage limit has been reached or credentials quota has been exhausted.

Inheritance
System.Object
System.Exception
ServiceUsageException
Implements
System.Runtime.Serialization.ISerializable
Namespace: Adobe.PDFServicesSDK.exception
Assembly: Adobe.PDFServicesSDK.Doc.dll
Syntax
public class ServiceUsageException : Exception, ISerializable

Constructors

ServiceUsageException(String)

Constructs a ServiceUsageException with the specified detail message.

Declaration
public ServiceUsageException(string message)
Parameters
Type Name Description
System.String message

error detail message

ServiceUsageException(String, String, Int32)

Constructs a ServiceUsageException with the specified detail message, requestTrackingId and returned HTTP status code.

Declaration
public ServiceUsageException(string message, string requestTrackingId, int statusCode)
Parameters
Type Name Description
System.String message

error detail message

System.String requestTrackingId

X-Request-Id header value to track the request

System.Int32 statusCode

HTTP Status code returned in API response

ServiceUsageException(String, String, Int32, String)

Constructs a ServiceUsageException with the specified detail message, requestTrackingId, returned HTTP status code and error code.

Declaration
public ServiceUsageException(string message, string requestTrackingId, int statusCode, string errorCode)
Parameters
Type Name Description
System.String message

error detail message

System.String requestTrackingId

X-Request-Id header value to track the request

System.Int32 statusCode

HTTP Status code returned in API response

System.String errorCode

Error code returned in API response

Properties

ErrorCode

Gets the error code of the response

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

RequestTrackingId

Gets tracking id for the failed http request

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

StatusCode

Gets the http status code of the response

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

Methods

ToString()

Returns the string reprensentation of ServiceUsageException

Declaration
public override string ToString()
Returns
Type Description
System.String

the string reprensentation of ServiceUsageException

Overrides
System.Exception.ToString()

Implements

System.Runtime.Serialization.ISerializable

See Also

SDKException
ServiceApiException
In This Article
Back to top Copyright © 2020 Adobe. All rights reserved.