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.SyntaxExceptionstatic classErrorIdentifier.TypePossible types of exasol error codes.
-
Constructor Summary
Constructors Constructor Description ErrorIdentifier(ErrorIdentifier.Type type, String tag, int index)Create a new instance ofErrorIdentifier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)intgetIndex()Get the index.StringgetTag()Get the tag.ErrorIdentifier.TypegetType()Get the type.inthashCode()static ErrorIdentifierparse(String errorCode)StringtoString()
-
-
-
Constructor Detail
-
ErrorIdentifier
public ErrorIdentifier(ErrorIdentifier.Type type, String tag, int index)
Create a new instance ofErrorIdentifier.- Parameters:
type- error typetag- error tagindex- error index
-
-
Method Detail
-
parse
public static ErrorIdentifier parse(String errorCode) throws ErrorIdentifier.SyntaxException
- Throws:
ErrorIdentifier.SyntaxException
-
getType
public ErrorIdentifier.Type getType()
Get the type.- Returns:
- type
-
getTag
public String getTag()
Get the tag.- Returns:
- tag
-
getIndex
public int getIndex()
Get the index.- Returns:
- index
-
-