aboutsummaryrefslogtreecommitdiff
path: root/nexgb/sync
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 01:58:52 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 01:58:52 -0400
commit3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f (patch)
treec9f52fa078fc860d7327e7a8441b2b7bc07f7cce /nexgb/sync
parentc00652934e4ec68016a152b9bea10273b0be8726 (diff)
downloadhaven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.gz
haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.xz
haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.zip
add a little more docs for errors
Diffstat (limited to 'nexgb/sync')
-rw-r--r--nexgb/sync/sync.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/nexgb/sync/sync.go b/nexgb/sync/sync.go
index 7a32bc4..1904963 100644
--- a/nexgb/sync/sync.go
+++ b/nexgb/sync/sync.go
@@ -2,7 +2,7 @@
package sync
/*
- This file was generated by sync.xml on May 10 2012 11:56:19pm EDT.
+ This file was generated by sync.xml on May 11 2012 1:58:36am EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -660,10 +660,13 @@ func (err CounterError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadCounter error. If no bad value exists, 0 is returned.
func (err CounterError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadCounter error.
+
func (err CounterError) Error() string {
fieldVals := make([]string, 0, 3)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -718,10 +721,13 @@ func (err AlarmError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadAlarm error. If no bad value exists, 0 is returned.
func (err AlarmError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadAlarm error.
+
func (err AlarmError) Error() string {
fieldVals := make([]string, 0, 3)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)