PccEgressException
public
final
class
PccEgressException
extends Exception
implements
Parcelable
| java.lang.Object | |||
| ↳ | java.lang.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | android.app.privatecompute.PccEgressException | ||
Exception thrown when an egress request fails inside the PCC sandbox. Contains the ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode) detailing the failure.
Summary
Nested classes | |
|---|---|
class |
PccEgressException.SensitiveCategoryInfo
Details about the detected sensitive content that caused an egress request to be rejected. |
Constants | |
|---|---|
int |
ERROR_CONTENT_SENSITIVE
Indicates that the request failed because the content was classified as sensitive. |
int |
ERROR_NO_RESPONSE_FROM_EGRESS_SERVICE
Indicates that the request failed because the proxy service did not respond or timed out. |
int |
ERROR_UNABLE_TO_DELIVER_REQUEST
Indicates that the request failed because the system was unable to deliver the egress. |
int |
ERROR_UNKNOWN
Indicates an unspecified or unexpected failure. |
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<PccEgressException> |
CREATOR
Standard parcelable creator for |
Public constructors | |
|---|---|
PccEgressException(int statusCode)
Creates a new PccEgressException with a given |
|
PccEgressException(int statusCode, PccEgressException.SensitiveCategoryInfo sensitiveCategoryInfo)
Creates a new PccEgressException with a given |
|
PccEgressException(int statusCode, String message)
Creates a new PccEgressException with a given |
|
PccEgressException(int statusCode, String message, PccEgressException.SensitiveCategoryInfo sensitiveCategoryInfo)
Creates a new PccEgressException with a given |
|
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
PccEgressException.SensitiveCategoryInfo
|
getSensitiveCategoryInfo()
Returns the |
int
|
getStatusCode()
Returns the status code detailing the egress failure. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
Constants
ERROR_CONTENT_SENSITIVE
public static final int ERROR_CONTENT_SENSITIVE
Indicates that the request failed because the content was classified as sensitive.
Constant Value: 3 (0x00000003)
ERROR_NO_RESPONSE_FROM_EGRESS_SERVICE
public static final int ERROR_NO_RESPONSE_FROM_EGRESS_SERVICE
Indicates that the request failed because the proxy service did not respond or timed out.
Constant Value: 2 (0x00000002)
ERROR_UNABLE_TO_DELIVER_REQUEST
public static final int ERROR_UNABLE_TO_DELIVER_REQUEST
Indicates that the request failed because the system was unable to deliver the egress.
Constant Value: 1 (0x00000001)
ERROR_UNKNOWN
public static final int ERROR_UNKNOWN
Indicates an unspecified or unexpected failure.
Constant Value: -1 (0xffffffff)
Fields
CREATOR
public static final Creator<PccEgressException> CREATOR
Standard parcelable creator for PccEgressException.
Public constructors
PccEgressException
public PccEgressException (int statusCode)
Creates a new PccEgressException with a given ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode).
| Parameters | |
|---|---|
statusCode |
int: The ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode) of the egress failure.
Value is one of the following: |
PccEgressException
public PccEgressException (int statusCode,
PccEgressException.SensitiveCategoryInfo sensitiveCategoryInfo)Creates a new PccEgressException with a given ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode) and SensitiveCategoryInfo.
| Parameters | |
|---|---|
statusCode |
int: The ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode 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
public PccEgressException (int statusCode,
String message)Creates a new PccEgressException with a given ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode) and detailed error message.
| Parameters | |
|---|---|
statusCode |
int: The ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode) of the egress failure.
Value is one of the following: |
message |
String: The detailed error message description.
This value cannot be null. |
PccEgressException
public PccEgressException (int statusCode,
String message,
PccEgressException.SensitiveCategoryInfo sensitiveCategoryInfo)Creates a new PccEgressException with a given ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode), detailed error message, and
SensitiveCategoryInfo.
| Parameters | |
|---|---|
statusCode |
int: The ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode 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
public int describeContents ()
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.
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or
|
getSensitiveCategoryInfo
public PccEgressException.SensitiveCategoryInfo getSensitiveCategoryInfo ()
Returns the SensitiveCategoryInfo detailing the sensitive content detected during
egress screening.
| Returns | |
|---|---|
PccEgressException.SensitiveCategoryInfo |
The SensitiveCategoryInfo, or null if not set or if the egress
failure was not due to sensitive content. |
getStatusCode
public int getStatusCode ()
Returns the status code detailing the egress failure.
| Returns | |
|---|---|
int |
The ERROR(StatusCode/android.app.privatecompute.PccEgressException.StatusCode StatusCode) of the egress failure.
Value is one of the following: |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
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.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-14 UTC.