-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomErrors.go
36 lines (28 loc) · 970 Bytes
/
customErrors.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
33
34
35
36
package firebase
//NoUIDFoundErr - No uid found after token verification
type NoUIDFoundErr struct {
}
func (e *NoUIDFoundErr) Error() string {
return "no uid found"
}
//UnexpectedUseFirestoreErr - Attempt at using firebase without initialization
//pass the param firebase = true on Connect
type UnexpectedUseFirestoreErr struct {
}
func (e *UnexpectedUseFirestoreErr) Error() string {
return "Initialize Firestore if you want to use it"
}
//UnexpectedUseAuthErr - Attempt at using auth without initialization
//pass the param auth = true on Connect
type UnexpectedUseAuthErr struct {
}
func (e *UnexpectedUseAuthErr) Error() string {
return "Initialize Auth if you want to use it"
}
//UnexpectedUseMessagingErr - Attempt at using messaging without initialization
//pass the param messaging = true on Connect
type UnexpectedUseMessagingErr struct {
}
func (e *UnexpectedUseMessagingErr) Error() string {
return "Initialize Messaging if you want to use it"
}