Invalid QR Code
This commit is contained in:
@@ -66,6 +66,13 @@ func NewError(errType ErrType, message string) *ServiceException {
|
||||
}
|
||||
}
|
||||
|
||||
func NewErrorMessage(errType *ServiceException, message string) *ServiceException {
|
||||
return &ServiceException{
|
||||
errorType: errType.ErrorType(),
|
||||
message: message,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ServiceException) ErrorType() ErrType {
|
||||
return s.errorType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user