Enum PartnerErrorCategory
java.lang.Object
java.lang.Enum<PartnerErrorCategory>
com.microsoft.store.partnercenter.exception.PartnerErrorCategory
- All Implemented Interfaces:
Serializable,Comparable<PartnerErrorCategory>,java.lang.constant.Constable
public enum PartnerErrorCategory extends Enum<PartnerErrorCategory>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_EXISTSThe resource already exists.BAD_INPUTThe error was due to bad inputs from the user.FORBIDDENThe operation was not granted to the caller.INVALID_OPERATIONThe requested operation is invalid.NOT_FOUNDThe resource was not found.NOT_SPECIFIEDDefines the error categories of the partner SDK.REQUEST_PARSINGThe partner service request body could not be parsed according to the preset expectation.RESPONSE_PARSINGThe partner service response could not be parsed according to the preset expectation.SERVER_BUSYThe partner service is overloaded currently.SERVER_ERRORThe partner service failed to process the request.TIMEOUTThe partner service did not respond in a timely manner.UNAUTHORIZEDThe user is not authorized to perform the requested action. -
Method Summary
Modifier and Type Method Description static PartnerErrorCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static PartnerErrorCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_SPECIFIED
Defines the error categories of the partner SDK. Unknown error type. -
BAD_INPUT
The error was due to bad inputs from the user. -
UNAUTHORIZED
The user is not authorized to perform the requested action. -
FORBIDDEN
The operation was not granted to the caller. -
NOT_FOUND
The resource was not found. -
ALREADY_EXISTS
The resource already exists. -
INVALID_OPERATION
The requested operation is invalid. -
SERVER_ERROR
The partner service failed to process the request. -
SERVER_BUSY
The partner service is overloaded currently. -
TIMEOUT
The partner service did not respond in a timely manner. -
RESPONSE_PARSING
The partner service response could not be parsed according to the preset expectation. -
REQUEST_PARSING
The partner service request body could not be parsed according to the preset expectation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-