- added 'isWarning()'
- fixed 'getErrorOrWarning()' return type