Class ErrorCode
- java.lang.Object
-
- com.exasol.errorcodecrawlermavenplugin.model.ErrorCode
-
public class ErrorCode 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 classErrorCode.TypePossible types of exasol error codes.
-
Constructor Summary
Constructors Constructor Description ErrorCode(ErrorCode.Type type, String tag, int index)Create a new instance ofErrorCode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)intgetIndex()Get the index.StringgetTag()Get the tag.ErrorCode.TypegetType()Get the type.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ErrorCode
public ErrorCode(ErrorCode.Type type, String tag, int index)
Create a new instance ofErrorCode.- Parameters:
type- error typetag- error tagindex- error index
-
-
Method Detail
-
getType
public ErrorCode.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
-
-