DefineNotFound defines a registered error of type NotFound.
(name, messageFormat string, publicAttributes ...string)
| 237 | |
| 238 | // DefineNotFound defines a registered error of type NotFound. |
| 239 | func DefineNotFound(name, messageFormat string, publicAttributes ...string) *Definition { |
| 240 | def := define(uint32(codes.NotFound), name, messageFormat, publicAttributes...) |
| 241 | return def |
| 242 | } |
| 243 | |
| 244 | // DefineAlreadyExists defines a registered error of type AlreadyExists. |
| 245 | func DefineAlreadyExists(name, messageFormat string, publicAttributes ...string) *Definition { |