Files
Mark DuckworthandGitHub 017073ed9b Fix documentation links for function overloads and improve readability of function headings (#7864)
* Support function links to function overloads.

* Improve readability of headings for functions.
2023-12-15 16:17:10 -07:00

2.9 KiB

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

StorageError class

An error returned by the Firebase Storage SDK.

Signature:

export declare class StorageError extends FirebaseError 

Extends: FirebaseError

Constructors

Constructor Modifiers Description
(constructor)(code, message, status_) Constructs a new instance of the StorageError class

Properties

Property Modifiers Type Description
customData { serverResponse: string | null; } Stores custom error data unique to the StorageError.
serverResponse null | string Optional response message that was added by the server.
status number

Methods

Method Modifiers Description
_codeEquals(code) Compares a StorageErrorCode against this error's code, filtering out the prefix.

StorageError.(constructor)

Constructs a new instance of the StorageError class

Signature:

constructor(code: StorageErrorCode, message: string, status_?: number);

Parameters

Parameter Type Description
code StorageErrorCode A StorageErrorCode string to be prefixed with 'storage/' and added to the end of the message.
message string Error message.
status_ number Corresponding HTTP Status Code

StorageError.customData

Stores custom error data unique to the StorageError.

Signature:

customData: {
        serverResponse: string | null;
    };

StorageError.serverResponse

Optional response message that was added by the server.

Signature:

get serverResponse(): null | string;

set serverResponse(serverResponse: string | null);

StorageError.status

Signature:

get status(): number;

set status(status: number);

StorageError._codeEquals()

Compares a StorageErrorCode against this error's code, filtering out the prefix.

Signature:

_codeEquals(code: StorageErrorCode): boolean;

Parameters

Parameter Type Description
code StorageErrorCode

Returns:

boolean