This commit is contained in:
number571 2024-04-06 09:15:59 +07:00
parent c617b5fcb9
commit cbbbc822a2
57 changed files with 64922 additions and 64812 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,9 @@ type SAdaptedError struct {
str string
}
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
func (err *SAdaptedError) Error() string {
return errPrefix + err.str
}
var (
ErrBuildRequest = &SAdaptedError{"build request"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SAdaptedError struct {
str string
}
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
func (err *SAdaptedError) Error() string {
return errPrefix + err.str
}
var (
ErrBadStatusCode = &SAdaptedError{"bad status code"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SAdaptedError struct {
str string
}
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
func (err *SAdaptedError) Error() string {
return errPrefix + err.str
}
var (
ErrLoadCountService = &SAdaptedError{"load count from service"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrLoadLogging = &SConfigError{"load logging"}

View File

@ -8,7 +8,9 @@ type SAdaptedError struct {
str string
}
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
func (err *SAdaptedError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidResponse = &SAdaptedError{"invalid response"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SHandlerError struct {
str string
}
func (err *SHandlerError) Error() string { return errPrefix + err.str }
func (err *SHandlerError) Error() string {
return errPrefix + err.str
}
var (
ErrReadOnlineConnections = &SHandlerError{"read online connections"}

View File

@ -8,7 +8,9 @@ type SStreamError struct {
str string
}
func (err *SStreamError) Error() string { return errPrefix + err.str }
func (err *SStreamError) Error() string {
return errPrefix + err.str
}
var (
ErrWriteFileChunk = &SStreamError{"write file chunk"}

View File

@ -8,7 +8,9 @@ type SUtilsError struct {
str string
}
func (err *SUtilsError) Error() string { return errPrefix + err.str }
func (err *SUtilsError) Error() string {
return errPrefix + err.str
}
var (
ErrRespSizeGeLimit = &SUtilsError{"response size >= limit message size"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -10,7 +10,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = errors.New(errPrefix + "bad request")

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SDatabaseError struct {
str string
}
func (err *SDatabaseError) Error() string { return errPrefix + err.str }
func (err *SDatabaseError) Error() string {
return errPrefix + err.str
}
var (
ErrLoadMessage = &SDatabaseError{"load message"}

View File

@ -8,7 +8,9 @@ type SHandlerError struct {
str string
}
func (err *SHandlerError) Error() string { return errPrefix + err.str }
func (err *SHandlerError) Error() string {
return errPrefix + err.str
}
var (
ErrReadConnections = &SHandlerError{"read connections"}

View File

@ -8,7 +8,9 @@ type SUtilsError struct {
str string
}
func (err *SUtilsError) Error() string { return errPrefix + err.str }
func (err *SUtilsError) Error() string {
return errPrefix + err.str
}
var (
ErrGetSizeInBase64 = &SUtilsError{"get size in base64"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -8,7 +8,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = &SClientError{"bad request"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -8,7 +8,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = &SClientError{"bad request"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -8,7 +8,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = &SClientError{"bad request"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -8,7 +8,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = &SClientError{"bad request"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrInvalidConfig = &SConfigError{"invalid config"}

View File

@ -8,7 +8,9 @@ type SDatabaseError struct {
str string
}
func (err *SDatabaseError) Error() string { return errPrefix + err.str }
func (err *SDatabaseError) Error() string {
return errPrefix + err.str
}
var (
ErrMessageIsExist = &SDatabaseError{"message is exist"}

View File

@ -8,7 +8,9 @@ type SHandlerError struct {
str string
}
func (err *SHandlerError) Error() string { return errPrefix + err.str }
func (err *SHandlerError) Error() string {
return errPrefix + err.str
}
var (
ErrLoadMessage = &SHandlerError{"load message"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -8,7 +8,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = &SClientError{"bad request"}

View File

@ -8,7 +8,9 @@ type SConfigError struct {
str string
}
func (err *SConfigError) Error() string { return errPrefix + err.str }
func (err *SConfigError) Error() string {
return errPrefix + err.str
}
var (
ErrNotSupportedKeySize = &SConfigError{"not supported key size"}

View File

@ -8,7 +8,9 @@ type SHandlerError struct {
str string
}
func (err *SHandlerError) Error() string { return errPrefix + err.str }
func (err *SHandlerError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = &SHandlerError{"bad request"}

View File

@ -8,7 +8,9 @@ type SAppError struct {
str string
}
func (err *SAppError) Error() string { return errPrefix + err.str }
func (err *SAppError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SAppError{"app running"}

View File

@ -8,7 +8,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrBadRequest = &SClientError{"bad request"}

View File

@ -8,7 +8,9 @@ type SApiError struct {
str string
}
func (err *SApiError) Error() string { return errPrefix + err.str }
func (err *SApiError) Error() string {
return errPrefix + err.str
}
var (
ErrBadStatusCode = &SApiError{"bad status code"}

View File

@ -8,7 +8,9 @@ type SBase64Error struct {
str string
}
func (err *SBase64Error) Error() string { return errPrefix + err.str }
func (err *SBase64Error) Error() string {
return errPrefix + err.str
}
var (
ErrBase64Size = &SBase64Error{"base64 size"}

View File

@ -8,7 +8,9 @@ type SLanguageError struct {
str string
}
func (err *SLanguageError) Error() string { return errPrefix + err.str }
func (err *SLanguageError) Error() string {
return errPrefix + err.str
}
var (
ErrUnknownLanguage = &SLanguageError{"unknown language"}

View File

@ -8,7 +8,9 @@ type SStdError struct {
str string
}
func (err *SStdError) Error() string { return errPrefix + err.str }
func (err *SStdError) Error() string {
return errPrefix + err.str
}
var (
ErrUnknownLogType = &SStdError{"unknown log type"}

View File

@ -8,7 +8,9 @@ type SClientError struct {
str string
}
func (err *SClientError) Error() string { return errPrefix + err.str }
func (err *SClientError) Error() string {
return errPrefix + err.str
}
var (
ErrLimitMessageSize = &SClientError{"limit message size"}

View File

@ -8,7 +8,9 @@ type SMessageError struct {
str string
}
func (err *SMessageError) Error() string { return errPrefix + err.str }
func (err *SMessageError) Error() string {
return errPrefix + err.str
}
var (
ErrUnknownType = &SMessageError{"unknown type of message"}

View File

@ -8,7 +8,9 @@ type SDatabaseError struct {
str string
}
func (err *SDatabaseError) Error() string { return errPrefix + err.str }
func (err *SDatabaseError) Error() string {
return errPrefix + err.str
}
var (
ErrOpenDB = &SDatabaseError{"open database"}

View File

@ -8,7 +8,9 @@ type SEncodingError struct {
str string
}
func (err *SEncodingError) Error() string { return errPrefix + err.str }
func (err *SEncodingError) Error() string {
return errPrefix + err.str
}
var (
ErrDeserialize = &SEncodingError{"deserialize bytes"}

View File

@ -8,7 +8,9 @@ type SAnonymityError struct {
str string
}
func (err *SAnonymityError) Error() string { return errPrefix + err.str }
func (err *SAnonymityError) Error() string {
return errPrefix + err.str
}
var (
ErrSetHashIntoDB = &SAnonymityError{"set hash into database"}

View File

@ -8,7 +8,9 @@ type SQueueError struct {
str string
}
func (err *SQueueError) Error() string { return errPrefix + err.str }
func (err *SQueueError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SQueueError{"queue running"}

View File

@ -8,7 +8,9 @@ type SConnError struct {
str string
}
func (err *SConnError) Error() string { return errPrefix + err.str }
func (err *SConnError) Error() string {
return errPrefix + err.str
}
var (
ErrReadFromSocket = &SConnError{"read from socket"}

View File

@ -8,7 +8,9 @@ type SConnKeeperError struct {
str string
}
func (err *SConnKeeperError) Error() string { return errPrefix + err.str }
func (err *SConnKeeperError) Error() string {
return errPrefix + err.str
}
var (
ErrRunning = &SConnKeeperError{"connkeeper running"}

View File

@ -8,7 +8,9 @@ type SNetworkError struct {
str string
}
func (err *SNetworkError) Error() string { return errPrefix + err.str }
func (err *SNetworkError) Error() string {
return errPrefix + err.str
}
var (
ErrNoConnections = &SNetworkError{"no connections"}

View File

@ -8,7 +8,9 @@ type SMessageError struct {
str string
}
func (err *SMessageError) Error() string { return errPrefix + err.str }
func (err *SMessageError) Error() string {
return errPrefix + err.str
}
var (
ErrUnknownType = &SMessageError{"unknown type"}

View File

@ -8,7 +8,9 @@ type SStateError struct {
str string
}
func (err *SStateError) Error() string { return errPrefix + err.str }
func (err *SStateError) Error() string {
return errPrefix + err.str
}
var (
ErrStateEnabled = &SStateError{"state already enabled"}

File diff suppressed because it is too large Load Diff