Documentation ¶
Overview ¶
Package errs define some system errors with specified types.
Index ¶
- Constants
- func BadRequestError(object interface{}) error
- func CheckStatsError(err error) error
- func ConflictError(object string) error
- func GetJobLogError(err error) error
- func GetJobStatsError(err error) error
- func GetJobsError(q *query.Parameter, err error) error
- func GetPeriodicExecutionError(err error) error
- func HandleJSONDataError(err error) error
- func IsBadRequestError(err error) bool
- func IsConflictError(err error) bool
- func IsObjectNotFoundError(err error) bool
- func IsStatusMismatchError(err error) bool
- func LaunchJobError(err error) error
- func MissingBackendHandlerError(err error) error
- func New(code uint16, err string, description string) error
- func NoObjectFoundError(object string) error
- func ReadRequestBodyError(err error) error
- func RetryJobError(err error) error
- func StatusMismatchError(current, target string) error
- func StopJobError(err error) error
- func UnauthorizedError(err error) error
- func UnknownActionNameError(err error) error
Constants ¶
const ( // ReadRequestBodyErrorCode is code for the error of reading http request body error ReadRequestBodyErrorCode = 10000 + iota // HandleJSONDataErrorCode is code for the error of handling json data error HandleJSONDataErrorCode // MissingBackendHandlerErrorCode is code for the error of missing backend controller MissingBackendHandlerErrorCode // LaunchJobErrorCode is code for the error of launching job LaunchJobErrorCode // CheckStatsErrorCode is code for the error of checking stats of worker worker CheckStatsErrorCode // GetJobStatsErrorCode is code for the error of getting stats of enqueued job GetJobStatsErrorCode // StopJobErrorCode is code for the error of stopping job StopJobErrorCode // RetryJobErrorCode is code for the error of retrying job RetryJobErrorCode // UnknownActionNameErrorCode is code for the case of unknown action name UnknownActionNameErrorCode // GetJobLogErrorCode is code for the error of getting job log GetJobLogErrorCode // NoObjectFoundErrorCode is code for the error of no object found NoObjectFoundErrorCode // UnAuthorizedErrorCode is code for the error of unauthorized accessing UnAuthorizedErrorCode // ResourceConflictsErrorCode is code for the error of resource conflicting ResourceConflictsErrorCode // BadRequestErrorCode is code for the error of bad request BadRequestErrorCode // GetJobsErrorCode is code for the error of getting scheduled jobs GetJobsErrorCode // GetPeriodicExecutionErrorCode is code for the error of getting periodic executions GetPeriodicExecutionErrorCode // StatusMismatchErrorCode is code for the error of mismatching status StatusMismatchErrorCode )
Variables ¶
This section is empty.
Functions ¶
func BadRequestError ¶ added in v1.8.0
func BadRequestError(object interface{}) error
BadRequestError returns the error of handing bad request case
func CheckStatsError ¶
CheckStatsError is error wrapper for the error of checking stats failed
func ConflictError ¶ added in v1.7.0
ConflictError is error for the case of resource conflicting
func GetJobLogError ¶
GetJobLogError is error for the case of getting job log failed
func GetJobStatsError ¶
GetJobStatsError is error wrapper for the error of getting job stats
func GetJobsError ¶ added in v1.8.0
GetJobsError is error for the case of getting jobs failed
func GetPeriodicExecutionError ¶ added in v1.8.0
GetPeriodicExecutionError is error for the case of getting periodic jobs failed
func HandleJSONDataError ¶
HandleJSONDataError is error wrapper for the error of handling json data.
func IsBadRequestError ¶ added in v1.8.0
IsBadRequestError returns true if the error is badRequestError
func IsConflictError ¶ added in v1.7.0
IsConflictError returns true if the error is conflictError
func IsObjectNotFoundError ¶
IsObjectNotFoundError return true if the error is objectNotFoundError
func IsStatusMismatchError ¶ added in v1.8.0
IsStatusMismatchError returns true if the error is statusMismatchError
func LaunchJobError ¶
LaunchJobError is error wrapper for the error of launching job failed.
func MissingBackendHandlerError ¶
MissingBackendHandlerError is error wrapper for the error of missing backend controller.
func NoObjectFoundError ¶
NoObjectFoundError is error wrapper for the case of no object found
func ReadRequestBodyError ¶
ReadRequestBodyError is error wrapper for the error of reading request body.
func RetryJobError ¶
RetryJobError is error for the case of retrying job failed
func StatusMismatchError ¶ added in v1.8.0
StatusMismatchError returns the error of job status mismatching
func StopJobError ¶
StopJobError is error for the case of stopping job failed
func UnauthorizedError ¶
UnauthorizedError is error for the case of unauthorized accessing
func UnknownActionNameError ¶
UnknownActionNameError is error for the case of getting unknown job action
Types ¶
This section is empty.