Skip to content

Commit

Permalink
add WCode and SCODE for EXCEPINFO
Browse files Browse the repository at this point in the history
fixes #148
  • Loading branch information
mattn committed Jul 12, 2017
1 parent 02d3668 commit 085abb8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ole.go
Expand Up @@ -26,6 +26,16 @@ type EXCEPINFO struct {
scode uint32
}

// WCode return wCode in EXCEPINFO.
func (e EXCEPINFO) WCode() uint16 {
return e.wCode
}

// SCODE return scode in EXCEPINFO.
func (e EXCEPINFO) SCODE() uint32 {
return e.scode
}

// String convert EXCEPINFO to string.
func (e EXCEPINFO) String() string {
var src, desc, hlp string
Expand Down

0 comments on commit 085abb8

Please sign in to comment.