21 lines
373 B
Go
21 lines
373 B
Go
package common
|
|
|
|
type InvalidSessionError struct{}
|
|
|
|
func (s *InvalidSessionError) Error() string {
|
|
return "no session found"
|
|
}
|
|
|
|
type InvalidRequestError struct{}
|
|
|
|
func (s *InvalidRequestError) Error() string {
|
|
return "invalid request"
|
|
}
|
|
|
|
type InvalidDeviceRequestError struct {
|
|
}
|
|
|
|
func (s *InvalidDeviceRequestError) Error() string {
|
|
return "no device attribute found"
|
|
}
|