forked from OpenAyame/ayame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
32 lines (24 loc) · 1.15 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main
import (
"errors"
)
// メッセージはくっつける
var (
errInvalidMessageType = errors.New("InvalidMessageType")
errMissingRoomID = errors.New("MissingRoomID")
errMissingClientID = errors.New("MissingClientID")
errInvalidJSON = errors.New("InvalidJSON")
errUnexpectedJSON = errors.New("UnexpectedJSON")
errRegistrationIncomplete = errors.New("RegistrationIncomplete")
errAuthnWebhook = errors.New("AuthnWebhookError")
errAuthnWebhookResponse = errors.New("AuthnWebhookResponseError")
errAuthnWebhookUnexpectedStatusCode = errors.New("AuthnWebhookUnexpectedStatusCode")
errAuthnWebhookReject = errors.New("AuthnWebhookReject")
errDisconnectWebhook = errors.New("DisconnectWebhookError")
errDisconnectWebhookResponse = errors.New("DisconnectWebhookResponseError")
errDisconnectWebhookUnexpectedStatusCode = errors.New("DisconnectWebhookUnexpectedStatusCode")
errConfigInvalidLogLevel = errors.New("ConfigInvalidLogLevel")
errRoomFull = errors.New("RoomFull")
// 想定外のエラー
errInternalServer = errors.New("InternalServerError")
)