Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(317)

Side by Side Diff: src/pkg/crypto/openpgp/error/error.go

Issue 5305068: code review 5305068: crypto/openpgp/error: use Error in names of error impl types (Closed)
Patch Set: diff -r a961b329ce1a https://go.googlecode.com/hg Created 13 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Package error contains common error types for the OpenPGP packages. 5 // Package error contains common error types for the OpenPGP packages.
6 package error 6 package error
7 7
8 import ( 8 import (
9 "strconv" 9 "strconv"
10 ) 10 )
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 // SignatureError indicates that a syntactically valid signature failed to 36 // SignatureError indicates that a syntactically valid signature failed to
37 // validate. 37 // validate.
38 type SignatureError string 38 type SignatureError string
39 39
40 func (b SignatureError) String() string { 40 func (b SignatureError) String() string {
41 return "OpenPGP signature invalid: " + string(b) 41 return "OpenPGP signature invalid: " + string(b)
42 } 42 }
43 43
44 type keyIncorrect int 44 type keyIncorrectError int
45 45
46 func (ki keyIncorrect) String() string { 46 func (ki keyIncorrectError) String() string {
47 return "the given key was incorrect" 47 return "the given key was incorrect"
48 } 48 }
49 49
50 var KeyIncorrectError = keyIncorrect(0) 50 var KeyIncorrectError = keyIncorrectError(0)
51 51
52 type unknownIssuer int 52 type unknownIssuerError int
53 53
54 func (unknownIssuer) String() string { 54 func (unknownIssuerError) String() string {
55 return "signature make by unknown entity" 55 return "signature make by unknown entity"
56 } 56 }
57 57
58 var UnknownIssuerError = unknownIssuer(0) 58 var UnknownIssuerError = unknownIssuerError(0)
59 59
60 type UnknownPacketTypeError uint8 60 type UnknownPacketTypeError uint8
61 61
62 func (upte UnknownPacketTypeError) String() string { 62 func (upte UnknownPacketTypeError) String() string {
63 return "unknown OpenPGP packet type: " + strconv.Itoa(int(upte)) 63 return "unknown OpenPGP packet type: " + strconv.Itoa(int(upte))
64 } 64 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b