DefineCorruption is the same as DefineDataLoss.
(name, messageFormat string, publicAttributes ...string)
| 306 | |
| 307 | // DefineCorruption is the same as DefineDataLoss. |
| 308 | func DefineCorruption(name, messageFormat string, publicAttributes ...string) *Definition { |
| 309 | def := define(uint32(codes.DataLoss), name, messageFormat, publicAttributes...) |
| 310 | return def |
| 311 | } |
| 312 | |
| 313 | // DefineUnauthenticated defines a registered error of type Unauthenticated. |
| 314 | // It should be used when a client attempts to perform an authenticated action |