Invalid QR Code

This commit is contained in:
aditya.siregar
2024-08-14 00:10:53 +07:00
parent 7cc4f1d152
commit 961387ab56
3 changed files with 16 additions and 0 deletions
+7
View File
@@ -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
}