Documentation
¶
Index ¶
- Constants
- Variables
- func ErrorToChannel(err error, ch chan<- error)
- func GinPanicErrorHandler(system, prefixMessage string) func(c *gin.Context)
- func PanicErrorHandler(system, prefixMessage string)
- func PanicGRPCErrorHandler(errContent *error, system, prefixMessage string)
- func PanicWaitGroupErrorHandler(errContent *error, rmu *sync.RWMutex, wg *sync.WaitGroup)
- type ErrAuthenticate
- func (e ErrAuthenticate) Error() string
- func (e ErrAuthenticate) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrAuthenticate) GetError() error
- func (e ErrAuthenticate) GetName() string
- func (e ErrAuthenticate) GinReport(c *gin.Context)
- func (e ErrAuthenticate) Report(prefix string)
- func (e *ErrAuthenticate) SetSystem(system string) IErrorReport
- type ErrDBAlreadyExists
- func (e ErrDBAlreadyExists) Error() string
- func (e ErrDBAlreadyExists) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrDBAlreadyExists) GetError() error
- func (e ErrDBAlreadyExists) GetName() string
- func (e ErrDBAlreadyExists) GinReport(c *gin.Context)
- func (e ErrDBAlreadyExists) Report(prefix string)
- func (e *ErrDBAlreadyExists) SetSystem(system string) IErrorReport
- type ErrDBConnection
- func (e ErrDBConnection) Error() string
- func (e ErrDBConnection) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrDBConnection) GetError() error
- func (e ErrDBConnection) GetName() string
- func (e ErrDBConnection) GinReport(c *gin.Context)
- func (e ErrDBConnection) Report(prefix string)
- func (e *ErrDBConnection) SetSystem(system string) IErrorReport
- type ErrDBDisconnection
- func (e ErrDBDisconnection) Error() string
- func (e ErrDBDisconnection) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrDBDisconnection) GetError() error
- func (e ErrDBDisconnection) GetName() string
- func (e ErrDBDisconnection) GinReport(c *gin.Context)
- func (e ErrDBDisconnection) Report(prefix string)
- func (e *ErrDBDisconnection) SetSystem(system string) IErrorReport
- type ErrDBExecute
- func (e ErrDBExecute) Error() string
- func (e ErrDBExecute) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrDBExecute) GetError() error
- func (e ErrDBExecute) GetName() string
- func (e ErrDBExecute) GinReport(c *gin.Context)
- func (e ErrDBExecute) Report(prefix string)
- func (e *ErrDBExecute) SetSystem(system string) IErrorReport
- type ErrDBRowNotFound
- func (e ErrDBRowNotFound) Error() string
- func (e ErrDBRowNotFound) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrDBRowNotFound) GetError() error
- func (e ErrDBRowNotFound) GetName() string
- func (e ErrDBRowNotFound) GinReport(c *gin.Context)
- func (e ErrDBRowNotFound) Report(prefix string)
- func (e *ErrDBRowNotFound) SetSystem(system string) IErrorReport
- type ErrDBUpdateNoEffect
- func (e ErrDBUpdateNoEffect) Error() string
- func (e ErrDBUpdateNoEffect) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrDBUpdateNoEffect) GetError() error
- func (e ErrDBUpdateNoEffect) GetName() string
- func (e ErrDBUpdateNoEffect) GinReport(c *gin.Context)
- func (e ErrDBUpdateNoEffect) Report(prefix string)
- func (e *ErrDBUpdateNoEffect) SetSystem(system string) IErrorReport
- type ErrExecute
- func (e ErrExecute) Error() string
- func (e ErrExecute) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrExecute) GetError() error
- func (e ErrExecute) GetName() string
- func (e ErrExecute) GinReport(c *gin.Context)
- func (e ErrExecute) Report(prefix string)
- func (e *ErrExecute) SetSystem(system string) IErrorReport
- type ErrGRPCConnection
- func (e ErrGRPCConnection) Error() string
- func (e ErrGRPCConnection) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrGRPCConnection) GetError() error
- func (e ErrGRPCConnection) GetName() string
- func (e ErrGRPCConnection) GinReport(c *gin.Context)
- func (e ErrGRPCConnection) Report(prefix string)
- func (e *ErrGRPCConnection) SetSystem(system string) IErrorReport
- type ErrGRPCExecute
- func (e ErrGRPCExecute) Error() string
- func (e ErrGRPCExecute) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrGRPCExecute) GetError() error
- func (e ErrGRPCExecute) GetName() string
- func (e ErrGRPCExecute) GinReport(c *gin.Context)
- func (e ErrGRPCExecute) Report(prefix string)
- func (e *ErrGRPCExecute) SetSystem(system string) IErrorReport
- type ErrInvalidArgument
- func (e ErrInvalidArgument) Error() string
- func (e ErrInvalidArgument) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrInvalidArgument) GetError() error
- func (e ErrInvalidArgument) GetName() string
- func (e ErrInvalidArgument) GinReport(c *gin.Context)
- func (e ErrInvalidArgument) Report(prefix string)
- func (e *ErrInvalidArgument) SetSystem(system string) IErrorReport
- type ErrJSONMarshal
- func (e ErrJSONMarshal) Error() string
- func (e ErrJSONMarshal) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrJSONMarshal) GetError() error
- func (e ErrJSONMarshal) GetName() string
- func (e ErrJSONMarshal) GinReport(c *gin.Context)
- func (e ErrJSONMarshal) Report(prefix string)
- func (e *ErrJSONMarshal) SetSystem(system string) IErrorReport
- type ErrJSONUnmarshal
- func (e ErrJSONUnmarshal) Error() string
- func (e ErrJSONUnmarshal) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrJSONUnmarshal) GetError() error
- func (e ErrJSONUnmarshal) GetName() string
- func (e ErrJSONUnmarshal) GinReport(c *gin.Context)
- func (e ErrJSONUnmarshal) Report(prefix string)
- func (e *ErrJSONUnmarshal) SetSystem(system string) IErrorReport
- type ErrJWTExecute
- func (e ErrJWTExecute) Error() string
- func (e ErrJWTExecute) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrJWTExecute) GetError() error
- func (e ErrJWTExecute) GetName() string
- func (e ErrJWTExecute) GinReport(c *gin.Context)
- func (e ErrJWTExecute) Report(prefix string)
- func (e *ErrJWTExecute) SetSystem(system string) IErrorReport
- type ErrNotFound
- func (e ErrNotFound) Error() string
- func (e ErrNotFound) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrNotFound) GetError() error
- func (e ErrNotFound) GetName() string
- func (e ErrNotFound) GinReport(c *gin.Context)
- func (e ErrNotFound) Report(prefix string)
- func (e *ErrNotFound) SetSystem(system string) IErrorReport
- type ErrPermissionDeny
- func (e ErrPermissionDeny) Error() string
- func (e ErrPermissionDeny) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrPermissionDeny) GetError() error
- func (e ErrPermissionDeny) GetName() string
- func (e ErrPermissionDeny) GinReport(c *gin.Context)
- func (e ErrPermissionDeny) Report(prefix string)
- func (e *ErrPermissionDeny) SetSystem(system string) IErrorReport
- type ErrServerExecute
- func (e ErrServerExecute) Error() string
- func (e ErrServerExecute) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrServerExecute) GetError() error
- func (e ErrServerExecute) GetName() string
- func (e ErrServerExecute) GinReport(c *gin.Context)
- func (e ErrServerExecute) Report(prefix string)
- func (e *ErrServerExecute) SetSystem(system string) IErrorReport
- type ErrVariable
- func (e ErrVariable) Error() string
- func (e ErrVariable) GRPCReport(errContent *error, prefixMessage string)
- func (e ErrVariable) GetError() error
- func (e ErrVariable) GetName() string
- func (e ErrVariable) GinReport(c *gin.Context)
- func (e ErrVariable) Report(prefix string)
- func (e *ErrVariable) SetSystem(system string) IErrorReport
- type IErrorReport
- type IGRPCErrorReport
- type IGinErrorReport
Constants ¶
View Source
const ( ErrProcessAuthenticate = "errAuthenticate" ErrDbAlreadyExists = "errDBAlreadyExists" ErrDbConnection = "errDBConnection" ErrDbDisconnection = "errDBDisConnection" ErrDbExecute = "errDBExecute" ErrDbRowNotFound = "errDBRowNotFound" ErrDbUpdateNoEffect = "errDBUpdateNoEffect" ErrProcessExecute = "errExecute" ErrGrpcConnection = "errGRPCConnection" ErrGrpcExecute = "errGRPCExecute" ErrProcessInvalidArgument = "errProcessInvalidArgument" ErrJsonMarshal = "errJSONMarshal" ErrJsonUnmarshal = "errJSONUnmarshal" ErrJwtExecute = "errJWTExecute" ErrDataNotFound = "errDataNotFound" ErrProcessPermissionDeny = "errPermissionDeny" ErrProcessServerExecute = "errServerExecute" ErrProcessVariable = "errVariable" )
Variables ¶
View Source
var ( ErrInWhitelist = errors.New("in whitelist") ErrNoPermission = errors.New("no permission") ErrUnauthenticated = errors.New("unauthenticated") ErrInvalidArguments = errors.New("invalid arguments") ErrNoRows = errors.New("no rows in result set") ErrAlreadyExists = errors.New("primary key already exist") ErrUpdateNoEffect = errors.New("no rows effected") ErrFailCloseSession = errors.New("fail to close connection") ErrIncomingMetadataExist = fmt.Errorf("%w: gRPC incoming metadata not exist", ErrInvalidArguments) ErrAuthorizationRequired = fmt.Errorf("%w: metadata key: [authorization] must required", ErrInvalidArguments) ErrAuthorizationTypeBearer = fmt.Errorf("%w: JWT Authorization format error: must be Bearer", ErrInvalidArguments) ErrDeny = fmt.Errorf("%w: deny", ErrUnauthenticated) ErrNoRefreshToken = fmt.Errorf("%w: no refresh token", ErrUnauthenticated) ErrExpiredToken = fmt.Errorf("%w: token is expired", ErrUnauthenticated) ErrScopeNotExist = fmt.Errorf("%w: scopes not exist", ErrInvalidArguments) ErrOutOfScopes = fmt.Errorf("%w: out of scopes", ErrNoPermission) ErrOutOfPermissions = fmt.Errorf("%w: out of permissions", ErrNoPermission) )
Functions ¶
func GinPanicErrorHandler ¶
func PanicErrorHandler ¶
func PanicErrorHandler(system, prefixMessage string)
func PanicGRPCErrorHandler ¶
Types ¶
type ErrAuthenticate ¶
type ErrAuthenticate struct {
// contains filtered or unexported fields
}
func NewErrAuthenticate ¶
func NewErrAuthenticate(err error) *ErrAuthenticate
func (ErrAuthenticate) Error ¶
func (e ErrAuthenticate) Error() string
func (ErrAuthenticate) GRPCReport ¶
func (e ErrAuthenticate) GRPCReport(errContent *error, prefixMessage string)
func (ErrAuthenticate) GetError ¶
func (e ErrAuthenticate) GetError() error
func (ErrAuthenticate) GinReport ¶
func (e ErrAuthenticate) GinReport(c *gin.Context)
func (ErrAuthenticate) Report ¶
func (e ErrAuthenticate) Report(prefix string)
func (*ErrAuthenticate) SetSystem ¶
func (e *ErrAuthenticate) SetSystem(system string) IErrorReport
type ErrDBAlreadyExists ¶
type ErrDBAlreadyExists struct {
// contains filtered or unexported fields
}
func NewErrDBAlreadyExists ¶
func NewErrDBAlreadyExists(err error) *ErrDBAlreadyExists
func (ErrDBAlreadyExists) Error ¶
func (e ErrDBAlreadyExists) Error() string
func (ErrDBAlreadyExists) GRPCReport ¶
func (e ErrDBAlreadyExists) GRPCReport(errContent *error, prefixMessage string)
func (ErrDBAlreadyExists) GetError ¶
func (e ErrDBAlreadyExists) GetError() error
func (ErrDBAlreadyExists) GinReport ¶
func (e ErrDBAlreadyExists) GinReport(c *gin.Context)
func (ErrDBAlreadyExists) Report ¶
func (e ErrDBAlreadyExists) Report(prefix string)
func (*ErrDBAlreadyExists) SetSystem ¶
func (e *ErrDBAlreadyExists) SetSystem(system string) IErrorReport
type ErrDBConnection ¶
type ErrDBConnection struct {
// contains filtered or unexported fields
}
func NewErrDBConnection ¶
func NewErrDBConnection(err error) *ErrDBConnection
func (ErrDBConnection) Error ¶
func (e ErrDBConnection) Error() string
func (ErrDBConnection) GRPCReport ¶
func (e ErrDBConnection) GRPCReport(errContent *error, prefixMessage string)
func (ErrDBConnection) GetError ¶
func (e ErrDBConnection) GetError() error
func (ErrDBConnection) GinReport ¶
func (e ErrDBConnection) GinReport(c *gin.Context)
func (ErrDBConnection) Report ¶
func (e ErrDBConnection) Report(prefix string)
func (*ErrDBConnection) SetSystem ¶
func (e *ErrDBConnection) SetSystem(system string) IErrorReport
type ErrDBDisconnection ¶
type ErrDBDisconnection struct {
// contains filtered or unexported fields
}
func NewErrDBDisconnection ¶
func NewErrDBDisconnection(err error) *ErrDBDisconnection
func (ErrDBDisconnection) Error ¶
func (e ErrDBDisconnection) Error() string
func (ErrDBDisconnection) GRPCReport ¶
func (e ErrDBDisconnection) GRPCReport(errContent *error, prefixMessage string)
func (ErrDBDisconnection) GetError ¶
func (e ErrDBDisconnection) GetError() error
func (ErrDBDisconnection) GinReport ¶
func (e ErrDBDisconnection) GinReport(c *gin.Context)
func (ErrDBDisconnection) Report ¶
func (e ErrDBDisconnection) Report(prefix string)
func (*ErrDBDisconnection) SetSystem ¶
func (e *ErrDBDisconnection) SetSystem(system string) IErrorReport
type ErrDBExecute ¶
type ErrDBExecute struct {
// contains filtered or unexported fields
}
func NewErrDBExecute ¶
func NewErrDBExecute(err error) *ErrDBExecute
func (ErrDBExecute) Error ¶
func (e ErrDBExecute) Error() string
func (ErrDBExecute) GRPCReport ¶
func (e ErrDBExecute) GRPCReport(errContent *error, prefixMessage string)
func (ErrDBExecute) GetError ¶
func (e ErrDBExecute) GetError() error
func (ErrDBExecute) GinReport ¶
func (e ErrDBExecute) GinReport(c *gin.Context)
func (ErrDBExecute) Report ¶
func (e ErrDBExecute) Report(prefix string)
func (*ErrDBExecute) SetSystem ¶
func (e *ErrDBExecute) SetSystem(system string) IErrorReport
type ErrDBRowNotFound ¶
type ErrDBRowNotFound struct {
// contains filtered or unexported fields
}
func NewErrDBRowNotFound ¶
func NewErrDBRowNotFound(err error) *ErrDBRowNotFound
func (ErrDBRowNotFound) Error ¶
func (e ErrDBRowNotFound) Error() string
func (ErrDBRowNotFound) GRPCReport ¶
func (e ErrDBRowNotFound) GRPCReport(errContent *error, prefixMessage string)
func (ErrDBRowNotFound) GetError ¶
func (e ErrDBRowNotFound) GetError() error
func (ErrDBRowNotFound) GinReport ¶
func (e ErrDBRowNotFound) GinReport(c *gin.Context)
func (ErrDBRowNotFound) Report ¶
func (e ErrDBRowNotFound) Report(prefix string)
func (*ErrDBRowNotFound) SetSystem ¶
func (e *ErrDBRowNotFound) SetSystem(system string) IErrorReport
type ErrDBUpdateNoEffect ¶
type ErrDBUpdateNoEffect struct {
// contains filtered or unexported fields
}
func NewErrDBUpdateNoEffect ¶
func NewErrDBUpdateNoEffect(err error) *ErrDBUpdateNoEffect
func (ErrDBUpdateNoEffect) Error ¶
func (e ErrDBUpdateNoEffect) Error() string
func (ErrDBUpdateNoEffect) GRPCReport ¶
func (e ErrDBUpdateNoEffect) GRPCReport(errContent *error, prefixMessage string)
func (ErrDBUpdateNoEffect) GetError ¶
func (e ErrDBUpdateNoEffect) GetError() error
func (ErrDBUpdateNoEffect) GinReport ¶
func (e ErrDBUpdateNoEffect) GinReport(c *gin.Context)
func (ErrDBUpdateNoEffect) Report ¶
func (e ErrDBUpdateNoEffect) Report(prefix string)
func (*ErrDBUpdateNoEffect) SetSystem ¶
func (e *ErrDBUpdateNoEffect) SetSystem(system string) IErrorReport
type ErrExecute ¶
type ErrExecute struct {
// contains filtered or unexported fields
}
func NewErrExecute ¶
func NewErrExecute(err error) *ErrExecute
func (ErrExecute) Error ¶
func (e ErrExecute) Error() string
func (ErrExecute) GRPCReport ¶
func (e ErrExecute) GRPCReport(errContent *error, prefixMessage string)
func (ErrExecute) GetError ¶
func (e ErrExecute) GetError() error
func (ErrExecute) GinReport ¶
func (e ErrExecute) GinReport(c *gin.Context)
func (ErrExecute) Report ¶
func (e ErrExecute) Report(prefix string)
func (*ErrExecute) SetSystem ¶
func (e *ErrExecute) SetSystem(system string) IErrorReport
type ErrGRPCConnection ¶
type ErrGRPCConnection struct {
// contains filtered or unexported fields
}
func NewErrGRPCConnection ¶
func NewErrGRPCConnection(err error, response interface{}) *ErrGRPCConnection
func (ErrGRPCConnection) Error ¶
func (e ErrGRPCConnection) Error() string
func (ErrGRPCConnection) GRPCReport ¶
func (e ErrGRPCConnection) GRPCReport(errContent *error, prefixMessage string)
func (ErrGRPCConnection) GetError ¶
func (e ErrGRPCConnection) GetError() error
func (ErrGRPCConnection) GinReport ¶
func (e ErrGRPCConnection) GinReport(c *gin.Context)
func (ErrGRPCConnection) Report ¶
func (e ErrGRPCConnection) Report(prefix string)
func (*ErrGRPCConnection) SetSystem ¶
func (e *ErrGRPCConnection) SetSystem(system string) IErrorReport
type ErrGRPCExecute ¶
type ErrGRPCExecute struct {
// contains filtered or unexported fields
}
func NewErrGRPCExecute ¶
func NewErrGRPCExecute(err error) *ErrGRPCExecute
func (ErrGRPCExecute) Error ¶
func (e ErrGRPCExecute) Error() string
func (ErrGRPCExecute) GRPCReport ¶
func (e ErrGRPCExecute) GRPCReport(errContent *error, prefixMessage string)
func (ErrGRPCExecute) GetError ¶
func (e ErrGRPCExecute) GetError() error
func (ErrGRPCExecute) GinReport ¶
func (e ErrGRPCExecute) GinReport(c *gin.Context)
func (ErrGRPCExecute) Report ¶
func (e ErrGRPCExecute) Report(prefix string)
func (*ErrGRPCExecute) SetSystem ¶
func (e *ErrGRPCExecute) SetSystem(system string) IErrorReport
type ErrInvalidArgument ¶
type ErrInvalidArgument struct {
// contains filtered or unexported fields
}
func NewErrInvalidArgument ¶
func NewErrInvalidArgument(err error) *ErrInvalidArgument
func (ErrInvalidArgument) Error ¶
func (e ErrInvalidArgument) Error() string
func (ErrInvalidArgument) GRPCReport ¶
func (e ErrInvalidArgument) GRPCReport(errContent *error, prefixMessage string)
func (ErrInvalidArgument) GetError ¶
func (e ErrInvalidArgument) GetError() error
func (ErrInvalidArgument) GinReport ¶
func (e ErrInvalidArgument) GinReport(c *gin.Context)
func (ErrInvalidArgument) Report ¶
func (e ErrInvalidArgument) Report(prefix string)
func (*ErrInvalidArgument) SetSystem ¶
func (e *ErrInvalidArgument) SetSystem(system string) IErrorReport
type ErrJSONMarshal ¶
type ErrJSONMarshal struct {
// contains filtered or unexported fields
}
func NewErrJSONMarshal ¶
func NewErrJSONMarshal(err error) *ErrJSONMarshal
func (ErrJSONMarshal) Error ¶
func (e ErrJSONMarshal) Error() string
func (ErrJSONMarshal) GRPCReport ¶
func (e ErrJSONMarshal) GRPCReport(errContent *error, prefixMessage string)
func (ErrJSONMarshal) GetError ¶
func (e ErrJSONMarshal) GetError() error
func (ErrJSONMarshal) GinReport ¶
func (e ErrJSONMarshal) GinReport(c *gin.Context)
func (ErrJSONMarshal) Report ¶
func (e ErrJSONMarshal) Report(prefix string)
func (*ErrJSONMarshal) SetSystem ¶
func (e *ErrJSONMarshal) SetSystem(system string) IErrorReport
type ErrJSONUnmarshal ¶
type ErrJSONUnmarshal struct {
// contains filtered or unexported fields
}
func NewErrJSONUnmarshal ¶
func NewErrJSONUnmarshal(err error) *ErrJSONUnmarshal
func (ErrJSONUnmarshal) Error ¶
func (e ErrJSONUnmarshal) Error() string
func (ErrJSONUnmarshal) GRPCReport ¶
func (e ErrJSONUnmarshal) GRPCReport(errContent *error, prefixMessage string)
func (ErrJSONUnmarshal) GetError ¶
func (e ErrJSONUnmarshal) GetError() error
func (ErrJSONUnmarshal) GinReport ¶
func (e ErrJSONUnmarshal) GinReport(c *gin.Context)
func (ErrJSONUnmarshal) Report ¶
func (e ErrJSONUnmarshal) Report(prefix string)
func (*ErrJSONUnmarshal) SetSystem ¶
func (e *ErrJSONUnmarshal) SetSystem(system string) IErrorReport
type ErrJWTExecute ¶
type ErrJWTExecute struct {
// contains filtered or unexported fields
}
func NewErrJWTExecute ¶
func NewErrJWTExecute(err error) *ErrJWTExecute
func (ErrJWTExecute) Error ¶
func (e ErrJWTExecute) Error() string
func (ErrJWTExecute) GRPCReport ¶
func (e ErrJWTExecute) GRPCReport(errContent *error, prefixMessage string)
func (ErrJWTExecute) GetError ¶
func (e ErrJWTExecute) GetError() error
func (ErrJWTExecute) GinReport ¶
func (e ErrJWTExecute) GinReport(c *gin.Context)
func (ErrJWTExecute) Report ¶
func (e ErrJWTExecute) Report(prefix string)
func (*ErrJWTExecute) SetSystem ¶
func (e *ErrJWTExecute) SetSystem(system string) IErrorReport
type ErrNotFound ¶
type ErrNotFound struct {
// contains filtered or unexported fields
}
func NewErrNotFound ¶
func NewErrNotFound(err error) *ErrNotFound
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
func (ErrNotFound) GRPCReport ¶
func (e ErrNotFound) GRPCReport(errContent *error, prefixMessage string)
func (ErrNotFound) GetError ¶
func (e ErrNotFound) GetError() error
func (ErrNotFound) GinReport ¶
func (e ErrNotFound) GinReport(c *gin.Context)
func (ErrNotFound) Report ¶
func (e ErrNotFound) Report(prefix string)
func (*ErrNotFound) SetSystem ¶
func (e *ErrNotFound) SetSystem(system string) IErrorReport
type ErrPermissionDeny ¶
type ErrPermissionDeny struct {
// contains filtered or unexported fields
}
func NewErrPermissionDeny ¶
func NewErrPermissionDeny(err error) *ErrPermissionDeny
func (ErrPermissionDeny) Error ¶
func (e ErrPermissionDeny) Error() string
func (ErrPermissionDeny) GRPCReport ¶
func (e ErrPermissionDeny) GRPCReport(errContent *error, prefixMessage string)
func (ErrPermissionDeny) GetError ¶
func (e ErrPermissionDeny) GetError() error
func (ErrPermissionDeny) GinReport ¶
func (e ErrPermissionDeny) GinReport(c *gin.Context)
func (ErrPermissionDeny) Report ¶
func (e ErrPermissionDeny) Report(prefix string)
func (*ErrPermissionDeny) SetSystem ¶
func (e *ErrPermissionDeny) SetSystem(system string) IErrorReport
type ErrServerExecute ¶
type ErrServerExecute struct {
// contains filtered or unexported fields
}
func NewErrServerExecute ¶
func NewErrServerExecute(err error) *ErrServerExecute
func (ErrServerExecute) Error ¶
func (e ErrServerExecute) Error() string
func (ErrServerExecute) GRPCReport ¶
func (e ErrServerExecute) GRPCReport(errContent *error, prefixMessage string)
func (ErrServerExecute) GetError ¶
func (e ErrServerExecute) GetError() error
func (ErrServerExecute) GinReport ¶
func (e ErrServerExecute) GinReport(c *gin.Context)
func (ErrServerExecute) Report ¶
func (e ErrServerExecute) Report(prefix string)
func (*ErrServerExecute) SetSystem ¶
func (e *ErrServerExecute) SetSystem(system string) IErrorReport
type ErrVariable ¶
type ErrVariable struct {
// contains filtered or unexported fields
}
func NewErrVariable ¶
func NewErrVariable(err error) *ErrVariable
func (ErrVariable) Error ¶
func (e ErrVariable) Error() string
func (ErrVariable) GRPCReport ¶
func (e ErrVariable) GRPCReport(errContent *error, prefixMessage string)
func (ErrVariable) GetError ¶
func (e ErrVariable) GetError() error
func (ErrVariable) GinReport ¶
func (e ErrVariable) GinReport(c *gin.Context)
func (ErrVariable) Report ¶
func (e ErrVariable) Report(prefix string)
func (*ErrVariable) SetSystem ¶
func (e *ErrVariable) SetSystem(system string) IErrorReport
type IErrorReport ¶
type IGRPCErrorReport ¶
type IGRPCErrorReport interface { IErrorReport GRPCReport(errContent *error, prefixMessage string) }
type IGinErrorReport ¶
type IGinErrorReport interface { IErrorReport GinReport(c *gin.Context) }
Source Files
¶
- channel.go
- definition.go
- errAuthenticate.go
- errDBAlreadyExists.go
- errDBConnection.go
- errDBDisconnection.go
- errDBExecute.go
- errDBRowNotFound.go
- errDBUpdateNoEffect.go
- errExecute.go
- errGRPCConnection.go
- errGRPCExecute.go
- errInvalidArgument.go
- errJSONMarshal.go
- errJSONUnmarshal.go
- errJWTExecute.go
- errNotFound.go
- errPermissionDeny.go
- errServerExecute.go
- errVariable.go
- gRPCHandler.go
- ginHandler.go
- handler.go
- init.go
Click to show internal directories.
Click to hide internal directories.