diff options
author | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-11 01:58:52 -0400 |
---|---|---|
committer | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-11 01:58:52 -0400 |
commit | 3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f (patch) | |
tree | c9f52fa078fc860d7327e7a8441b2b7bc07f7cce /nexgb/randr | |
parent | c00652934e4ec68016a152b9bea10273b0be8726 (diff) | |
download | haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.gz haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.xz haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.zip |
add a little more docs for errors
Diffstat (limited to 'nexgb/randr')
-rw-r--r-- | nexgb/randr/randr.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nexgb/randr/randr.go b/nexgb/randr/randr.go index 35de3bf..83e7035 100644 --- a/nexgb/randr/randr.go +++ b/nexgb/randr/randr.go @@ -2,7 +2,7 @@ package randr /* - This file was generated by randr.xml on May 10 2012 11:56:19pm EDT. + This file was generated by randr.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -1103,10 +1103,13 @@ func (err BadOutputError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadOutput error. If no bad value exists, 0 is returned. func (err BadOutputError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadOutput error. + func (err BadOutputError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1146,10 +1149,13 @@ func (err BadCrtcError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadCrtc error. If no bad value exists, 0 is returned. func (err BadCrtcError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadCrtc error. + func (err BadCrtcError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1189,10 +1195,13 @@ func (err BadModeError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadMode error. If no bad value exists, 0 is returned. func (err BadModeError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadMode error. + func (err BadModeError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) |