IsErrNameNotAllowed returns true if the underlying error has the type ErrNameNotAllowed.
(err error)
| 1504 | // IsErrNameNotAllowed returns true if the underlying error has the type |
| 1505 | // ErrNameNotAllowed. |
| 1506 | func IsErrNameNotAllowed(err error) bool { |
| 1507 | _, ok := errors.Cause(err).(ErrNameNotAllowed) |
| 1508 | return ok |
| 1509 | } |
| 1510 | |
| 1511 | func (err ErrNameNotAllowed) Value() string { |
| 1512 | val, ok := err.args["name"].(string) |
no outgoing calls