diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-11 01:58:52 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-11 01:58:52 -0400 |
| commit | 9699de49ee211d90e7d0fea68f1a76eb6e4f13ff (patch) | |
| tree | da26df65a24672ca8a29093b03d519f90923dd9b /record/record.go | |
| parent | 7df5ddac5097b1207570d2d1fa59fdaf7051800a (diff) | |
add a little more docs for errors
Diffstat (limited to 'record/record.go')
| -rw-r--r-- | record/record.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/record/record.go b/record/record.go index 28b268e..5623e50 100644 --- a/record/record.go +++ b/record/record.go @@ -2,7 +2,7 @@ package record /* - This file was generated by record.xml on May 10 2012 11:56:19pm EDT. + This file was generated by record.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -499,10 +499,13 @@ func (err BadContextError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadContext error. If no bad value exists, 0 is returned. func (err BadContextError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadContext error. + func (err BadContextError) Error() string { fieldVals := make([]string, 0, 1) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) |
