github.com/qioalice/ekago/v3@v3.3.2-0.20221202205325-5c262d586ee4/ekaerr/class_builtin.go (about) 1 // Copyright © 2020. All rights reserved. 2 // Author: Ilya Stroy. 3 // Contacts: iyuryevich@pm.me, https://github.com/qioalice 4 // License: https://opensource.org/licenses/MIT 5 6 package ekaerr 7 8 var ( 9 // NotFound is a class for not found error 10 NotFound = CommonErrors.NewClass("NotFound") 11 12 // AlreadyExist is a class for an entity already exist error 13 AlreadyExist = CommonErrors.NewClass("AlreadyExist") 14 15 // IllegalArgument is a class for invalid argument error 16 IllegalArgument = CommonErrors.NewClass("IllegalArgument") 17 18 // IllegalState is a class for invalid state error 19 IllegalState = CommonErrors.NewClass("IllegalState") 20 21 // IllegalFormat is a class for invalid format error 22 IllegalFormat = CommonErrors.NewClass("IllegalFormat") 23 24 // InitializationFailed is a class for initialization error 25 InitializationFailed = CommonErrors.NewClass("InitializationFailed") 26 27 // DataUnavailable is a class for unavailable data error 28 DataUnavailable = CommonErrors.NewClass("DataUnavailable") 29 30 // ServiceUnavailable is a class for unavailable service error 31 ServiceUnavailable = CommonErrors.NewClass("ServiceUnavailable") 32 33 // UnsupportedOperation is a class for unsupported operation error 34 UnsupportedOperation = CommonErrors.NewClass("UnsupportedOperation") 35 36 // RejectedOperation is a class for rejected operation error 37 RejectedOperation = CommonErrors.NewClass("RejectedOperation") 38 39 // Interrupted is a class for interruption error 40 Interrupted = CommonErrors.NewClass("Interrupted") 41 42 // AssertionFailed is a class for assertion error 43 AssertionFailed = CommonErrors.NewClass("AssertionFailed") 44 45 // InternalError is a class for internal error 46 InternalError = CommonErrors.NewClass("InternalError") 47 48 // ExternalError is a class for external error 49 ExternalError = CommonErrors.NewClass("ExternalError") 50 51 // ConcurrentUpdate is a class for concurrent update error 52 ConcurrentUpdate = CommonErrors.NewClass("ConcurrentUpdate") 53 54 // TimeoutElapsed is a class for timeout error 55 TimeoutElapsed = CommonErrors.NewClass("Timeout") 56 57 // NotImplemented is an error class for lacking implementation 58 NotImplemented = UnsupportedOperation.NewSubClass("NotImplemented") 59 60 // UnsupportedVersion is a class for unsupported version error 61 UnsupportedVersion = UnsupportedOperation.NewSubClass("UnsupportedVersion") 62 )