public abstract class ResourceInfo extends Object
This error detail type provides information about the specific resource that was involved in the error. This is particularly useful when the error is related to resource access, permissions, or resource-specific operations.
ResourceInfo helps clients understand:
Examples of when ResourceInfo might be provided:
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceInfo.Builder
Builder for constructing ResourceInfo instances.
|
| Constructor and Description |
|---|
ResourceInfo() |
| Modifier and Type | Method and Description |
|---|---|
static ResourceInfo.Builder |
builder()
Creates a new builder for constructing ResourceInfo instances.
|
abstract String |
description()
Describes what error is encountered when accessing this resource.
|
abstract String |
owner()
The owner of the resource (optional).
|
abstract String |
resourceName()
The name of the resource being accessed.
|
abstract String |
resourceType()
A name for the type of resource being accessed.
|
public abstract String resourceType()
This field categorizes the resource by its type or class. Examples might include:
This information helps clients understand what category of resource was involved and potentially implement resource-type-specific error handling.
public abstract String resourceName()
This field provides the specific identifier or name of the resource that was involved in the error. The format depends on the resource type but typically includes:
This identifier helps clients locate the specific resource and potentially retry the operation or report the issue more precisely.
public abstract String owner()
This field identifies who owns or controls the resource. This information is particularly useful for permission-related errors or when the client needs to contact the resource owner.
Examples of owner values:
Note: This field may be null or empty if the owner information is not available or not applicable.
public abstract String description()
This field provides a human-readable description of the specific error that occurred when trying to access or operate on the resource. The description should be clear enough for developers to understand what went wrong.
Examples of resource error descriptions:
public static ResourceInfo.Builder builder()
Copyright © 2026. All rights reserved.