mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-19 02:42:50 +00:00
16 lines
255 B
Go
16 lines
255 B
Go
|
package main
|
||
|
|
||
|
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}
|
||
|
}
|