/
bsiv
/
frost
Обзор
Документация
Войти
/
bsiv
/
frost
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/errors.go
28 строк
1019 B
bytemare
Various updates and enhancements (#15)
19 окт 2024, 14:27
19 окт 2024, 14:27
f9865d5
Код
Авторство
О чём код?
// SPDX-License-Identifier: MIT // // Copyright (C) 2024 Daniel Bourdrez. All Rights Reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree or at // https://spdx.org/licenses/MIT.html package internal import "errors" var ( // ErrInvalidParameters indicates that wrong input has been provided. ErrInvalidParameters = errors.New("invalid parameters") // ErrInvalidCiphersuite indicates a non-supported ciphersuite is being used. ErrInvalidCiphersuite = errors.New("ciphersuite not available") // ErrInvalidLength indicates that a provided encoded data piece is not of the expected length. ErrInvalidLength = errors.New("invalid encoding length") // ErrIdentifierIs0 is returned when the invalid 0 identifier is encountered. ErrIdentifierIs0 = errors.New("identifier is 0") // ErrEncodingInvalidJSONEncoding is returned when invalid JSON is detected. ErrEncodingInvalidJSONEncoding = errors.New("invalid JSON encoding") )