Class LicensingException

This class is used to implement exception handling. When an error occurs, either a SCL component (such as, the Sentinel Cloud Connect) or the currently executing application reports it by throwing an exception. The exception contains information about the error and the corresponding error code.

Namespace: SentinelCloud.Services.Licensing (Contain classes that helps in licensing operations such as requesting, updating, and releasing a license.)

Jar File: SentinelLicensing-5.x.x

Constructors

Syntax Description
LicensingException()

Default constructor.

LicensingException(int statusCode, String errorMessage)

Creates an object using the given status code and error message.

>statusCode: Contains a numeric code for the error.

>errorMessage: Contains an error message to help users identify the reason of error and take an appropriate action.

APIs

Modifier and Type API
int getStatusCode()
String getErrMessage()