Documentation
¶
Index ¶
- Constants
- type FactoryError
- func (c FactoryError) Error() string
- func (c FactoryError) ErrorCode() errorCode
- func (c FactoryError) ErrorMessage() string
- func (c FactoryError) ErrorString() string
- func (c FactoryError) Exists() bool
- func (c FactoryError) LoggingParams() map[string]interface{}
- func (c FactoryError) ToError() error
- func (c FactoryError) ToString() string
- func (c FactoryError) UserMessage() string
- func (c FactoryError) WithParam(key string, val interface{}) FactoryError
Constants ¶
View Source
const ( NoCode errorCode = "NO_CODE" ErrorPackage errorCode = "ERROR_PACKAGE" BashPackage errorCode = "BASH_PACKAGE" )
ToDo: amend and add more error codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FactoryError ¶
type FactoryError struct {
// contains filtered or unexported fields
}
func NewFactoryError ¶
func NewFactoryError(errCode errorCode, error string) FactoryError
func (FactoryError) Error ¶
func (c FactoryError) Error() string
func (FactoryError) ErrorCode ¶
func (c FactoryError) ErrorCode() errorCode
func (FactoryError) ErrorMessage ¶
func (c FactoryError) ErrorMessage() string
func (FactoryError) ErrorString ¶
func (c FactoryError) ErrorString() string
func (FactoryError) Exists ¶
func (c FactoryError) Exists() bool
func (FactoryError) LoggingParams ¶
func (c FactoryError) LoggingParams() map[string]interface{}
func (FactoryError) ToError ¶
func (c FactoryError) ToError() error
func (FactoryError) ToString ¶
func (c FactoryError) ToString() string
func (FactoryError) UserMessage ¶
func (c FactoryError) UserMessage() string
func (FactoryError) WithParam ¶
func (c FactoryError) WithParam(key string, val interface{}) FactoryError
WithParam value should not be a pointer
Click to show internal directories.
Click to hide internal directories.