DefineInternal defines a registered error of type Internal.
(name, messageFormat string, publicAttributes ...string)
| 288 | |
| 289 | // DefineInternal defines a registered error of type Internal. |
| 290 | func DefineInternal(name, messageFormat string, publicAttributes ...string) *Definition { |
| 291 | def := define(uint32(codes.Internal), name, messageFormat, publicAttributes...) |
| 292 | return def |
| 293 | } |
| 294 | |
| 295 | // DefineUnavailable defines a registered error of type Unavailable. |
| 296 | func DefineUnavailable(name, messageFormat string, publicAttributes ...string) *Definition { |