handle-error-codes #18

Merged
Alfred-mk merged 3 commits from handle-error-codes into master 2025-10-27 11:29:55 +01:00
Showing only changes of commit 73e6220a8c - Show all commits

View File

@ -27,6 +27,15 @@ var (
logg = logging.NewVanilla().WithDomain("sarafu-api.devapi")
)
type APIError struct {
Code string
Description string
}
func (e *APIError) Error() string {
return e.Description
}
type HTTPAccountService struct {
SS storage.StorageService
UseApi bool