PccEgressException
class PccEgressException : Exception, Parcelable
| kotlin.Any | |||
| ↳ | kotlin.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | android.app.privatecompute.PccEgressException | ||
Exception thrown when an egress request fails inside the PCC sandbox. Contains the android.app.privatecompute.PccEgressException.StatusCode detailing the failure.
Summary
| Nested classes | |
|---|---|
|
Details about the detected sensitive content that caused an egress request to be rejected. |
|
| Constants | |
|---|---|
| static Int |
Indicates that the request failed because the content was classified as sensitive. |
| static Int |
Indicates that the request failed because the proxy service did not respond or timed out. |
| static Int |
Indicates that the request failed because the system was unable to deliver the egress. |
| static Int |
Indicates an unspecified or unexpected failure. |
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
PccEgressException(statusCode: Int)Creates a new PccEgressException with a given android. |
|
PccEgressException(statusCode: Int, sensitiveCategoryInfo: PccEgressException.SensitiveCategoryInfo)Creates a new PccEgressException with a given android. |
|
PccEgressException(statusCode: Int, message: String)Creates a new PccEgressException with a given android. |
|
PccEgressException(statusCode: Int, message: String, sensitiveCategoryInfo: PccEgressException.SensitiveCategoryInfo)Creates a new PccEgressException with a given android. |
|
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| PccEgressException.SensitiveCategoryInfo? |
Returns the |
| Int |
Returns the status code detailing the egress failure. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<PccEgressException!> |
Standard parcelable creator for |
Constants
ERROR_CONTENT_SENSITIVE
static val ERROR_CONTENT_SENSITIVE: Int
Indicates that the request failed because the content was classified as sensitive.
Value: 3ERROR_NO_RESPONSE_FROM_EGRESS_SERVICE
static val ERROR_NO_RESPONSE_FROM_EGRESS_SERVICE: Int
Indicates that the request failed because the proxy service did not respond or timed out.
Value: 2ERROR_UNABLE_TO_DELIVER_REQUEST
static val ERROR_UNABLE_TO_DELIVER_REQUEST: Int
Indicates that the request failed because the system was unable to deliver the egress.
Value: 1ERROR_UNKNOWN
static val ERROR_UNKNOWN: Int
Indicates an unspecified or unexpected failure.
Value: -1Public constructors
PccEgressException
PccEgressException(statusCode: Int)
Creates a new PccEgressException with a given android.app.privatecompute.PccEgressException.StatusCode.
| Parameters | |
|---|---|
statusCode |
Int: The android.app.privatecompute.PccEgressException.StatusCode of the egress failure. Value is one of the following: |
PccEgressException
PccEgressException(
statusCode: Int,
sensitiveCategoryInfo: PccEgressException.SensitiveCategoryInfo)
Creates a new PccEgressException with a given android.app.privatecompute.PccEgressException.StatusCode and SensitiveCategoryInfo.
| Parameters | |
|---|---|
statusCode |
Int: The android.app.privatecompute.PccEgressException.StatusCode of the egress failure. Value is one of the following: |
sensitiveCategoryInfo |
PccEgressException.SensitiveCategoryInfo: The SensitiveCategoryInfo detailing the sensitive content screening result. This value cannot be null. |
PccEgressException
PccEgressException(
statusCode: Int,
message: String)
Creates a new PccEgressException with a given android.app.privatecompute.PccEgressException.StatusCode and detailed error message.
| Parameters | |
|---|---|
statusCode |
Int: The android.app.privatecompute.PccEgressException.StatusCode of the egress failure. Value is one of the following: |
message |
String: The detailed error message description. This value cannot be null. |
PccEgressException
PccEgressException(
statusCode: Int,
message: String,
sensitiveCategoryInfo: PccEgressException.SensitiveCategoryInfo)
Creates a new PccEgressException with a given android.app.privatecompute.PccEgressException.StatusCode, detailed error message, and SensitiveCategoryInfo.
| Parameters | |
|---|---|
statusCode |
Int: The android.app.privatecompute.PccEgressException.StatusCode of the egress failure. Value is one of the following: |
message |
String: The detailed error message description. This value cannot be null. |
sensitiveCategoryInfo |
PccEgressException.SensitiveCategoryInfo: The SensitiveCategoryInfo detailing the sensitive content screening result. This value cannot be null. |
Public methods
describeContents
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
getSensitiveCategoryInfo
fun getSensitiveCategoryInfo(): PccEgressException.SensitiveCategoryInfo?
Returns the SensitiveCategoryInfo detailing the sensitive content detected during egress screening.
| Return | |
|---|---|
PccEgressException.SensitiveCategoryInfo? |
The SensitiveCategoryInfo, or null if not set or if the egress failure was not due to sensitive content. |
getStatusCode
fun getStatusCode(): Int
Returns the status code detailing the egress failure.
| Return | |
|---|---|
Int |
The android.app.privatecompute.PccEgressException.StatusCode of the egress failure. Value is one of the following: |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following:
|
Properties
CREATOR
static val CREATOR: Parcelable.Creator<PccEgressException!>
Standard parcelable creator for PccEgressException.