Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RepositoryUninitialized = Initialize(500, "Uninitialized repository is not available") JwtUninitialized = Initialize(500, "Uninitialized jwt is not available") RequestBodyDecodeFailed = Initialize(400, "RequestBody decode failed.") RoleIdAlreadyExists = Initialize(400, "The role-id is already exists.") SigninFailed = Initialize(400, "Signin failed") AdminRoleExists = Initialize(400, "The role-id is already exists.") UnAuthorized = Initialize(401, "Unauthorized") OasUndefined = Initialize(404, "OAS is undefined") OasValidationFailure = Initialize(500, "OAS validation failure.") AdminUserNotfound = Initialize(404, "Admin User not found.") Forbidden = Initialize(403, "Forbidden") MismatchState = Initialize(400, "State is mismatch.") )
Functions ¶
This section is empty.
Types ¶
type VironError ¶
type VironError struct {
// contains filtered or unexported fields
}
func Initialize ¶
func Initialize(code int, message string) *VironError
func (*VironError) Error ¶
func (v *VironError) Error() string
func (*VironError) MarshalJSON ¶
func (v *VironError) MarshalJSON() ([]byte, error)
func (*VironError) StatusCode ¶
func (v *VironError) StatusCode() int
Click to show internal directories.
Click to hide internal directories.