11package com .ringcentral .definitions ;
22
3-
4- /**
5- * Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed
6- */
7- public class ADGError
8- {
3+ /**
4+ * Description of an error occurred during request processing. This data type can be used only in
5+ * readonly mode, no writing is allowed
6+ */
7+ public class ADGError {
98 /**
10- * Code that characterizes this error. Code uniquely identifies the source of the error.
11- * Enum: ErrorCode{code='ADG-000', httpStatus=503, description='Service temporary unavailable.'}, ErrorCode{code='ADG-010', httpStatus=503, description='Federation data temporary unavailable.'}, ErrorCode{code='ADG-001', httpStatus=500, description='Service internal error.'}, ErrorCode{code='ADG-100', httpStatus=403, description='Insufficient permissions.'}, ErrorCode{code='ADG-101', httpStatus=403, description='Unauthorized access.'}, ErrorCode{code='ADG-102', httpStatus=405, description='Method not allowed.'}, ErrorCode{code='ADG-111', httpStatus=400, description='Need Content-Type header.'}, ErrorCode{code='ADG-112', httpStatus=400, description='Request body is invalid.'}, ErrorCode{code='ADG-121', httpStatus=400, description='Parameter [${paramName}] is invalid. ${additionalInfo:-}'}, ErrorCode{code='ADG-115', httpStatus=415, description='Unsupported Media Type.'}, ErrorCode{code='ADG-105', httpStatus=404, description='Current account is not linked to any federation.'}, ErrorCode{code='ADG-107', httpStatus=404, description='Account not found.'}, ErrorCode{code='ADG-122', httpStatus=404, description='Contact not found.'}, ErrorCode{code='ADG-200', httpStatus=404, description='Invalid URI'}
9+ * Code that characterizes this error. Code uniquely identifies the source of the error. Enum:
10+ * ErrorCode{code='ADG-000', httpStatus=503, description='Service temporary unavailable.'},
11+ * ErrorCode{code='ADG-010', httpStatus=503, description='Federation data temporary
12+ * unavailable.'}, ErrorCode{code='ADG-001', httpStatus=500, description='Service internal
13+ * error.'}, ErrorCode{code='ADG-100', httpStatus=403, description='Insufficient permissions.'},
14+ * ErrorCode{code='ADG-101', httpStatus=403, description='Unauthorized access.'},
15+ * ErrorCode{code='ADG-102', httpStatus=405, description='Method not allowed.'},
16+ * ErrorCode{code='ADG-111', httpStatus=400, description='Need Content-Type header.'},
17+ * ErrorCode{code='ADG-112', httpStatus=400, description='Request body is invalid.'},
18+ * ErrorCode{code='ADG-121', httpStatus=400, description='Parameter [${paramName}] is invalid.
19+ * ${additionalInfo:-}'}, ErrorCode{code='ADG-115', httpStatus=415, description='Unsupported
20+ * Media Type.'}, ErrorCode{code='ADG-105', httpStatus=404, description='Current account is not
21+ * linked to any federation.'}, ErrorCode{code='ADG-107', httpStatus=404, description='Account
22+ * not found.'}, ErrorCode{code='ADG-122', httpStatus=404, description='Contact not found.'},
23+ * ErrorCode{code='ADG-200', httpStatus=404, description='Invalid URI'}
1224 */
1325 public String errorCode ;
14- public ADGError errorCode ( String errorCode )
15- {
26+
27+ public ADGError errorCode ( String errorCode ) {
1628 this .errorCode = errorCode ;
1729 return this ;
1830 }
1931
20- /**
21- * Message that describes the error. This message can be used in UI.
22- */
32+ /** Message that describes the error. This message can be used in UI. */
2333 public String message ;
24- public ADGError message ( String message )
25- {
34+
35+ public ADGError message ( String message ) {
2636 this .message = message ;
2737 return this ;
2838 }
29- }
39+ }
0 commit comments