mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
17 lines
363 B
Go
17 lines
363 B
Go
/*
|
|
* Copyright IBM Corp. All Rights Reserved.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
package main
|
|
|
|
// 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
|
|
}
|