/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/kbfs/tlf/errors.go
42 строки
1 KB
John Zila
setup the base read tree
14 дек 2018, 03:11
14 дек 2018, 03:11
3fb26e9
Код
Авторство
О чём код?
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package tlf import "fmt" // InvalidIDError indicates that a TLF ID string is not parseable or // invalid. type InvalidIDError struct { id string } func (e InvalidIDError) Error() string { return fmt.Sprintf("Invalid TLF ID %q", e.id) } // HandleExtensionMismatchError indicates the expected extension // doesn't match the server's extension for the given handle. type HandleExtensionMismatchError struct { Expected HandleExtension // Actual may be nil. Actual *HandleExtension } // Error implements the error interface for HandleExtensionMismatchError func (e HandleExtensionMismatchError) Error() string { return fmt.Sprintf("Folder handle extension mismatch, "+ "expected: %s, actual: %s", e.Expected, e.Actual) } // BadNameError indicates a top-level folder name that has an // incorrect format. type BadNameError struct { Name string } // Error implements the error interface for BadNameError. func (e BadNameError) Error() string { return fmt.Sprintf("TLF name %s is in an incorrect format", e.Name) }