Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5b81b6

Browse files
committed
Define Error::severity()
1 parent 78b1f5a commit c5b81b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

liblangutil/Exceptions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class Error: virtual public util::Exception
206206

207207
ErrorId errorId() const { return m_errorId; }
208208
Type type() const { return m_type; }
209+
Severity severity() const { return errorSeverity(m_type); }
209210

210211
SourceLocation const* sourceLocation() const noexcept;
211212
SecondarySourceLocation const* secondarySourceLocation() const noexcept;

0 commit comments

Comments
 (0)