@@ -12,22 +12,23 @@ var (
1212 // ErrInvalidLength invalid input document code length
1313 ErrInvalidLength = errors .New ("invalid length" )
1414
15- // ErrInvalidFormattedSNILSLength
15+ // ErrInvalidFormattedSNILSLength invalid formatted length of snils
1616 ErrInvalidFormattedSNILSLength = errors .New ("invalid formatted snils length" )
1717
18- // ErrRegistrationReasonCode
18+ // ErrRegistrationReasonCode invalid registration reason code
1919 ErrRegistrationReasonCode = errors .New ("invalid registration reason code" )
2020
21- // ErrInvalidValue
21+ // ErrInvalidValue invalid input value
2222 ErrInvalidValue = errors .New ("invalid code value" )
2323
24- // ErrInvalidBIKCountryCode
24+ // ErrInvalidBIKCountryCode invalid bik code country
2525 ErrInvalidBIKCountryCode = errors .New ("invalid bik country code" )
2626
27- // ErrNotImplemented
27+ // ErrNotImplemented not implemented method error
2828 ErrNotImplemented = errors .New ("method does not implemented" )
2929)
3030
31+ // CommonError common error wrapped base error
3132type CommonError struct {
3233 Method string
3334 Err error
@@ -37,7 +38,8 @@ func (c *CommonError) Error() string {
3738 return fmt .Sprintf ("%s: %s" , c .Method , c .Err .Error ())
3839}
3940
40- func GetPackageName () (string , error ) {
41+ // GetModuleName get package name in runtime
42+ func GetModuleName () (string , error ) {
4143 pc , _ , _ , ok := runtime .Caller (1 )
4244 if ! ok {
4345 return "" , errors .New ("invalid runtime caller" )
0 commit comments