mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-19 08:15:08 +00:00
11 lines
273 B
Go
11 lines
273 B
Go
package commands
|
|
|
|
// ExpectedError represents a known, expected application error that should be
|
|
// displayed normally rather than treated as an unexpected failure.
|
|
type ExpectedError struct {
|
|
Message string
|
|
}
|
|
|
|
func (e *ExpectedError) Error() string {
|
|
return e.Message
|
|
}
|