Package com.exsol.errorcodemodel
Class ErrorIdentifier
- java.lang.Object
-
- com.exsol.errorcodemodel.ErrorIdentifier
-
public class ErrorIdentifier extends Object
This class represents an Exasol error code (e.g: E-EX-1). Each tag has a type (eg: E), a tag (e.g: EX) and an index (e.g: 1).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorIdentifier.SyntaxExceptionException that is thrown on syntax errors in theErrorIdentifier.static classErrorIdentifier.TypePossible types of exasol error codes.
-
Constructor Summary
Constructors Constructor Description ErrorIdentifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorIdentifierparse(String errorCode)Parse an error identifier string.StringtoString()
-
-
-
Method Detail
-
parse
public static ErrorIdentifier parse(String errorCode) throws ErrorIdentifier.SyntaxException
Parse an error identifier string.Example: E-TEST-1
- Parameters:
errorCode- error identifier string- Returns:
- parsed
ErrorIdentifier - Throws:
ErrorIdentifier.SyntaxException- if the code has an invalid syntax
-
-