1- /** Scrapbox REST APIが返すエラーの型
1+ /** error types returned by Scrapbox REST API
22 *
3- * `name`はないことがある
3+ * `name` may not exist
44 */
55export interface ErrorLike {
66 /** error name */
@@ -9,35 +9,35 @@ export interface ErrorLike {
99 message : string ;
1010}
1111
12- /** 参加していないprivate projectに対してAPIを叩いたときに発生するエラー */
12+ /** error that occurs when calling API on a private project you haven't joined */
1313export interface NotMemberError extends ErrorLike {
1414 /** error name */
1515 name : "NotMemberError" ;
1616}
1717
18- /** 指定したprojectやpageが見つからないときに発生するエラー */
18+ /** error that occurs when the specified project or page is not found */
1919export interface NotFoundError extends ErrorLike {
2020 /** error name */
2121 name : "NotFoundError" ;
2222}
2323
24- /** owner/admin権限が不足しているときに発生するエラー */
24+ /** error that occurs when owner/admin privileges are insufficient */
2525export interface NotPrivilegeError extends ErrorLike {
2626 /** error name */
2727 name : "NotPrivilegeError" ;
2828}
2929
30- /** Loginが必要なAPIをloginせずに叩いたときに発生するエラー */
30+ /** error that occurs when calling an API that requires login without being logged in */
3131export interface NotLoggedInError extends ErrorLike {
3232 /** error name */
3333 name : "NotLoggedInError" ;
3434
35- /** 詳細情報 */
35+ /** detailed information */
3636 details : {
37- /** 取得しようとしたprojectの名前 */
37+ /** name of the project you tried to access */
3838 project : string ;
3939
40- /** 使用できるログイン方法 */
40+ /** available login methods */
4141 loginStrategies : (
4242 | "google"
4343 | "github"
@@ -50,54 +50,54 @@ export interface NotLoggedInError extends ErrorLike {
5050 } ;
5151}
5252
53- /** CSRF tokenが不正なときに発生するエラー */
53+ /** error that occurs when CSRF token is invalid */
5454export interface SessionError extends ErrorLike {
5555 /** error name */
5656 name : "SessionError" ;
5757}
5858
59- /** 不正なURLを渡したときに返ってくるエラー
59+ /** error returned when passing an invalid URL
6060 *
61- * 実際のresponseではmessageしか返ってこないことに注意
61+ * note that in actual response, only message is returned
6262 */
6363export interface InvalidURLError extends ErrorLike {
6464 /** error name */
6565 name : "InvalidURLError" ;
6666}
6767
68- /** URL先ページから正常な応答が返ってこなかったときのエラー */
68+ /** error when normal response is not returned from the URL destination page */
6969export interface BadRequestError extends ErrorLike {
7070 /** error name */
7171 name : "BadRequestError" ;
7272}
7373
74- /** 検索文字列を渡さないと出てくるエラー
74+ /** error that appears when you don't pass a search string
7575 *
76- * 実際のresponseではmessageしか返ってこないことに注意
76+ * note that in actual response, only message is returned
7777 */
7878export interface NoQueryError extends ErrorLike {
7979 /** error name */
8080 name : "NoQueryError" ;
8181}
82- /** 不正なfollowingIdを渡されたときに発生するエラー
82+ /** error that occurs when an invalid followingId is passed
8383 *
84- * 実際のresponseではmessageしか返ってこないことに注意
84+ * note that in actual response, only message is returned
8585 */
8686export interface InvalidFollowingIdError extends ErrorLike {
8787 name : "InvalidFollowingIdError" ;
8888}
8989
90- /** 容量を使い切ったときに発生するerror
90+ /** error that occurs when capacity is exhausted
9191 *
92- * 実際のresponseではmessageしか返ってこないことに注意
92+ * note that in actual response, only message is returned
9393 */
9494export interface FileCapacityError extends ErrorLike {
9595 name : "FileCapacityError" ;
9696}
9797
98- /** Google Cloud Storage XML APIのerror
98+ /** Google Cloud Storage XML API error
9999 *
100- * `message`には[この形式 ](https://cloud.google.com/storage/docs/xml-api/reference-status#http-status-and-error-codes)のXMLが入る
100+ * `message` contains XML in [this format ](https://cloud.google.com/storage/docs/xml-api/reference-status#http-status-and-error-codes)
101101 */
102102export interface GCSError extends ErrorLike {
103103 name : "GCSError" ;
0 commit comments