26 lines
511 B
Go
26 lines
511 B
Go
package gozxing
|
|
|
|
type ChecksumException interface {
|
|
ReaderException
|
|
checksumException()
|
|
}
|
|
|
|
type checksumException struct {
|
|
exception
|
|
}
|
|
|
|
func (checksumException) readerException() {}
|
|
func (checksumException) checksumException() {}
|
|
|
|
func NewChecksumException(args ...interface{}) ChecksumException {
|
|
return checksumException{
|
|
newException("ChecksumException", args...),
|
|
}
|
|
}
|
|
|
|
func WrapChecksumException(e error) ChecksumException {
|
|
return checksumException{
|
|
wrapException("ChecksumException", e),
|
|
}
|
|
}
|