github.com/unidoc/unidoc@v2.2.0+incompatible/pdf/ps/const.go (about) 1 /* 2 * This file is subject to the terms and conditions defined in 3 * file 'LICENSE.md', which is part of this source code package. 4 */ 5 6 package ps 7 8 import ( 9 "errors" 10 ) 11 12 // Tolerance for comparing real values. 13 const TOLERANCE = 0.000001 14 15 // Common errors. 16 var ErrStackUnderflow = errors.New("Stack underflow") 17 var ErrStackOverflow = errors.New("Stack overflow") 18 var ErrTypeCheck = errors.New("Type check error") 19 var ErrRangeCheck = errors.New("Range check error") 20 var ErrUndefinedResult = errors.New("Undefined result error")