|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
info.fingo.util.EnclosingException
info.fingo.csv.CSVException
public class CSVException
The excpetion used while parsing or validation of CSV data. Consider use of following methods when catched:
getCode - to compare the exception code with CODE_XXX constantsgetFieldKey - to find the exception related CSV fieldgetLine - the number of invalid line in CSV data
| Field Summary | |
|---|---|
static int |
CODE_BAD_DATA
Error code: invalid data = 0x17 |
static int |
CODE_EMPTY_FILE
Error code: empty file = 0x11 |
static int |
CODE_EMPTY_KEY
Error code: empty key in header = 0x13 |
static int |
CODE_KEYS_NOT_UNIQUE
Error code: not unique keys in header = 0x14 |
static int |
CODE_NO_KEYS
Error code: no keys (header) found = 0x12 |
static int |
CODE_QUOTATION
Error code: unmatched qutation = 0x16 |
static int |
CODE_VALS_NUMBER
Error code: number of values doesn't match number of keys = 0x15 |
| Fields inherited from class info.fingo.util.EnclosingException |
|---|
code, nestedException |
| Constructor Summary | |
|---|---|
CSVException()
Constructor for CSVException. |
|
CSVException(java.lang.Exception nestedException)
Constructor for CSVException. |
|
CSVException(int exceptionCode)
Constructor for CSVException. |
|
CSVException(int exceptionCode,
java.lang.Exception nestedException)
Constructor for CSVException. |
|
CSVException(int exceptionCode,
java.lang.Exception nestedException,
int line,
java.lang.String fieldKey)
Constructor for CSVException. |
|
CSVException(java.lang.String message)
Constructor for CSVException. |
|
CSVException(java.lang.String message,
java.lang.Exception nestedException)
Constructor for CSVException. |
|
CSVException(java.lang.String message,
int exceptionCode)
Constructor for CSVException. |
|
CSVException(java.lang.String message,
int exceptionCode,
java.lang.Exception nestedException)
Constructor for CSVException. |
|
CSVException(java.lang.String message,
int exceptionCode,
java.lang.Exception nestedException,
int line,
java.lang.String fieldKey)
Constructor for CSVException. |
|
CSVException(java.lang.String message,
int exceptionCode,
int line,
java.lang.String fieldKey)
Constructor for CSVException. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFieldKey()
Returns the field key. |
int |
getLine()
Returns the line. |
| Methods inherited from class info.fingo.util.EnclosingException |
|---|
fillInStackTrace, getCode, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Throwable |
|---|
getCause, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CODE_EMPTY_FILE
public static final int CODE_NO_KEYS
public static final int CODE_EMPTY_KEY
public static final int CODE_KEYS_NOT_UNIQUE
public static final int CODE_VALS_NUMBER
public static final int CODE_QUOTATION
public static final int CODE_BAD_DATA
| Constructor Detail |
|---|
public CSVException()
public CSVException(java.lang.String message)
message - exception messagepublic CSVException(int exceptionCode)
exceptionCode - the code
public CSVException(java.lang.String message,
int exceptionCode,
java.lang.Exception nestedException)
message - exception messageexceptionCode - the codenestedException - nested exception
public CSVException(java.lang.String message,
int exceptionCode,
java.lang.Exception nestedException,
int line,
java.lang.String fieldKey)
message - exception messageexceptionCode - the codenestedException - nested exceptionline - line numberfieldKey - key of field (column) causing exception
public CSVException(int exceptionCode,
java.lang.Exception nestedException)
exceptionCode - the codenestedException - nested exception
public CSVException(int exceptionCode,
java.lang.Exception nestedException,
int line,
java.lang.String fieldKey)
exceptionCode - the codenestedException - nested exceptionline - line numberfieldKey - key of field (column) causing exceptionpublic CSVException(java.lang.Exception nestedException)
nestedException - nested exception
public CSVException(java.lang.String message,
int exceptionCode)
message - exception messageexceptionCode - the code
public CSVException(java.lang.String message,
int exceptionCode,
int line,
java.lang.String fieldKey)
message - exception messageexceptionCode - the codeline - line numberfieldKey - key of field (column) causing exception
public CSVException(java.lang.String message,
java.lang.Exception nestedException)
message - exception messagenestedException - nested exception| Method Detail |
|---|
public java.lang.String getFieldKey()
public int getLine()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||