mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-18 18:31:56 +00:00
16 lines
266 B
Go
16 lines
266 B
Go
package statuskeycardgo
|
|
|
|
import "fmt"
|
|
|
|
type keycardError struct {
|
|
message string
|
|
}
|
|
|
|
func (e *keycardError) Error() string {
|
|
return fmt.Sprintf("keycard-error: %s", e.message)
|
|
}
|
|
|
|
func newKeycardError(message string) *keycardError {
|
|
return &keycardError{message}
|
|
}
|