-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97b7c05
commit 147f9a7
Showing
12 changed files
with
78 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
csv/src/main/java/com/fasterxml/jackson/dataformat/csv/CsvReadException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.fasterxml.jackson.dataformat.csv; | ||
|
||
/** | ||
* Format-specific exception used to indicate problems regarding low-level | ||
* decoding/parsing issues specific to CSV content; | ||
* usually problems with field-to-column mapping as defined by {@link CsvSchema}. | ||
*<p> | ||
* In Jackson 2.x this type extends | ||
* {@link com.fasterxml.jackson.databind.DatabindException}, but for Jackson 3.0 | ||
* will become streaming-level exception | ||
* | ||
* @since 2.13 | ||
*/ | ||
@SuppressWarnings("deprecation") | ||
public class CsvReadException | ||
extends CsvMappingException | ||
{ | ||
private static final long serialVersionUID = 1L; | ||
|
||
public CsvReadException(CsvParser p, String msg, CsvSchema schema) { | ||
super(p, msg, schema); | ||
} | ||
|
||
public static CsvReadException from(CsvParser p, String msg, CsvSchema schema) { | ||
return new CsvReadException(p, msg, schema); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
csv/src/main/java/com/fasterxml/jackson/dataformat/csv/CsvWriteException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.fasterxml.jackson.dataformat.csv; | ||
|
||
/** | ||
* Format-specific exception used to indicate problems regarding low-level | ||
* generation issues specific to CSV content; | ||
* usually problems with field-to-column mapping as defined by {@link CsvSchema}. | ||
*<p> | ||
* In Jackson 2.x this type extends | ||
* {@link com.fasterxml.jackson.databind.DatabindException}, but for Jackson 3.0 | ||
* will become streaming-level exception | ||
* | ||
* @since 2.13 | ||
*/ | ||
@SuppressWarnings("deprecation") | ||
public class CsvWriteException | ||
extends CsvMappingException | ||
{ | ||
private static final long serialVersionUID = 1L; | ||
|
||
public CsvWriteException(CsvGenerator gen, String msg, CsvSchema schema) { | ||
super(gen, msg, schema); | ||
} | ||
|
||
public static CsvWriteException from(CsvGenerator gen, String msg, CsvSchema schema) { | ||
return new CsvWriteException(gen, msg, schema); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters