HttpsError
interface
An HttpsError wraps a single error from a function call.
Example
try {
 await firebase.functions().httpsCallable('order')();
} catch (httpsError) {
  console.log('Message', httpsError.message);
  // Check code
  if (httpsError.code === firebase.functions.HttpsErrorCode.NOT_FOUND) {
    console.error('Functions endpoint "order" not found');
  }
}
Properties
Error
</>Error: ErrorConstructor;
cause
</>cause: unknown;
code
</>A standard error code that will be returned to the client. This also determines the HTTP status code of the response, as defined in code.proto.
code: FunctionsErrorCode;
message
</>message: string;
name
</>name: string;
stack
</>stack: undefined | string;
