mirror of
https://github.com/number571/go-peer.git
synced 2026-09-14 02:55:43 +05:00
28 lines
875 B
Go
28 lines
875 B
Go
package client
|
|
|
|
const (
|
|
errPrefix = "pkg/client = "
|
|
)
|
|
|
|
type SClientError struct {
|
|
str string
|
|
}
|
|
|
|
func (err *SClientError) Error() string {
|
|
return errPrefix + err.str
|
|
}
|
|
|
|
var (
|
|
ErrLimitMessageSize = &SClientError{"limit message size"}
|
|
ErrInitCheckMessage = &SClientError{"init check message"}
|
|
ErrDecryptCipherKey = &SClientError{"decrypt cipher key"}
|
|
ErrDecodePublicKey = &SClientError{"decode public key"}
|
|
ErrDecodePayloadWrapper = &SClientError{"decode payload wrapper"}
|
|
ErrInvalidDataHash = &SClientError{"invalid data hash"}
|
|
ErrInvalidHashSign = &SClientError{"invalid hash sign"}
|
|
ErrDecodePayload = &SClientError{"decode payload"}
|
|
ErrEncryptSymmetricKey = &SClientError{"encrypt symmetric key"}
|
|
ErrDecodeBytesJoiner = &SClientError{"decode bytes joiner"}
|
|
ErrInvalidPubKeySize = &SClientError{"invalid pub key size"}
|
|
)
|