as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
アクセスいただきありがとうございます。こちらのページは現在英語のみのご用意となっております。順次日本語化を進めてまいりますので、ご理解のほどよろしくお願いいたします。

throwIfError

throwIfError(statusCode, errorMessage): void

Function to parse the numeric status code provided and throw the appropriate error if it is a failure code.

Parameters

statusCode

number

The status code.

errorMessage

undefined string

Returns

void

Throws

InternalError, IllegalStateError, StorageLimitError


Last updated: Sep 30, 2025