Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new VertexAI error type #8240

Merged
merged 19 commits into from
Jun 25, 2024
Prev Previous commit
Next Next commit
Update API reports
  • Loading branch information
dlarocque committed Jun 24, 2024
commit 021bd88dac5c30fa3a7fe2032e6c22d7b090a808
17 changes: 11 additions & 6 deletions common/api-review/vertexai-preview.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@ export enum HarmSeverity {
HARM_SEVERITY_UNSPECIFIED = "HARM_SEVERITY_UNSPECIFIED"
}

// @public
export interface HTTPErrorDetails {
errorDetails?: ErrorDetails[];
status: number;
statusText: string;
}

// @public
export interface InlineDataPart {
// (undocumented)
Expand Down Expand Up @@ -603,17 +610,15 @@ export interface VertexAI {

// @public
export class VertexAIError extends FirebaseError {
constructor(code: VertexAIErrorCode, message: string, status?: number | undefined, statusText?: string | undefined, errorDetails?: ErrorDetails[] | undefined);
constructor(code: VertexAIErrorCode, message: string, httpErrorDetails?: HTTPErrorDetails | undefined, generateContentResponse?: GenerateContentResponse | undefined);
// (undocumented)
readonly code: VertexAIErrorCode;
// (undocumented)
readonly errorDetails?: ErrorDetails[] | undefined;
readonly generateContentResponse?: GenerateContentResponse | undefined;
// (undocumented)
readonly message: string;
// (undocumented)
readonly status?: number | undefined;
readonly httpErrorDetails?: HTTPErrorDetails | undefined;
// (undocumented)
readonly statusText?: string | undefined;
readonly message: string;
}

// @public
Expand Down