Class B2ForbiddenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.backblaze.b2.client.exceptions.B2Exception
-
- com.backblaze.b2.client.exceptions.B2ForbiddenException
-
- All Implemented Interfaces:
java.io.Serializable
public class B2ForbiddenException extends B2Exception
B2ForbiddenException is thrown when an HTTP response has a 403 status code or when a field for which client does not have necessary read authorization is accessed (e.g., defaultServerSideEncryption in B2Bucket).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_CODE
static int
STATUS
-
Constructor Summary
Constructors Constructor Description B2ForbiddenException(java.lang.String code, java.lang.Integer retryAfterSecondsOrNull, java.lang.String message)
B2ForbiddenException(java.lang.String code, java.lang.Integer retryAfterSecondsOrNull, java.lang.String message, java.lang.Throwable cause)
-
Method Summary
-
Methods inherited from class com.backblaze.b2.client.exceptions.B2Exception
create, getCode, getRetryAfterSecondsOrNull, getStatus, toString
-
-
-
-
Field Detail
-
DEFAULT_CODE
public static final java.lang.String DEFAULT_CODE
- See Also:
- Constant Field Values
-
STATUS
public static final int STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
B2ForbiddenException
public B2ForbiddenException(java.lang.String code, java.lang.Integer retryAfterSecondsOrNull, java.lang.String message)
-
B2ForbiddenException
public B2ForbiddenException(java.lang.String code, java.lang.Integer retryAfterSecondsOrNull, java.lang.String message, java.lang.Throwable cause)
-
-