-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for JSON path, added masking types ref
- Loading branch information
Showing
19 changed files
with
830 additions
and
79 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Data; | ||
|
||
namespace Dandraka.Zoro.Processor | ||
{ | ||
/// <summary> | ||
/// Exception raised when a field is not found. | ||
/// </summary> | ||
public class DataNotFoundException : Exception | ||
{ | ||
/// <summary> | ||
/// Creates a FieldNotFoundException. | ||
/// </summary> | ||
public DataNotFoundException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Creates a FieldNotFoundException specifying the field name. | ||
/// </summary> | ||
public DataNotFoundException(DataRow row) | ||
: base($"No match could be located for data row\r\n{string.Join(",", row.ItemArray)}") | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Creates a FieldNotFoundException specifying the field name and an inner exception. | ||
/// </summary> | ||
public DataNotFoundException(DataRow row, Exception inner) | ||
: base($"No match could be located for data row\r\n{string.Join(",", row.ItemArray)}", inner) | ||
{ | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,30 +1,33 @@ | ||
using System; | ||
|
||
/// <summary> | ||
/// Exception raised when a field is not found. | ||
/// </summary> | ||
public class FieldNotFoundException : Exception | ||
namespace Dandraka.Zoro.Processor | ||
{ | ||
/// <summary> | ||
/// Creates a FieldNotFoundException. | ||
/// Exception raised when a field is not found. | ||
/// </summary> | ||
public FieldNotFoundException() | ||
public class FieldNotFoundException : Exception | ||
{ | ||
} | ||
/// <summary> | ||
/// Creates a FieldNotFoundException. | ||
/// </summary> | ||
public FieldNotFoundException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Creates a FieldNotFoundException specifying the field name. | ||
/// </summary> | ||
public FieldNotFoundException(string field) | ||
: base($"Field {field} was not found.") | ||
{ | ||
} | ||
/// <summary> | ||
/// Creates a FieldNotFoundException specifying the field name. | ||
/// </summary> | ||
public FieldNotFoundException(string field) | ||
: base($"Field or JsonPath {field} was not found.") | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Creates a FieldNotFoundException specifying the field name and an inner exception. | ||
/// </summary> | ||
public FieldNotFoundException(string field, Exception inner) | ||
: base($"Field {field} was not found.", inner) | ||
{ | ||
/// <summary> | ||
/// Creates a FieldNotFoundException specifying the field name and an inner exception. | ||
/// </summary> | ||
public FieldNotFoundException(string field, Exception inner) | ||
: base($"Field or JsonPath {field} was not found.", inner) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.