Package com.exsol.errorcodemodel
Class ErrorCodeReportReader
- java.lang.Object
-
- com.exsol.errorcodemodel.ErrorCodeReportReader
-
public class ErrorCodeReportReader extends Object
This class reads anErrorCodeReportfrom JSON file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorCodeReportReader.ReadExceptionException that is thrown when something went wrong with reading the error-report.
-
Constructor Summary
Constructors Constructor Description ErrorCodeReportReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodeReportreadReport(Path source)Read anErrorCodeReportfrom JSON file.
-
-
-
Method Detail
-
readReport
public ErrorCodeReport readReport(Path source) throws ErrorCodeReportReader.ReadException
Read anErrorCodeReportfrom JSON file.- Parameters:
source- json file to report from- Returns:
- read
ErrorCodeReport - Throws:
ErrorCodeReportReader.ReadException- if something goes wrong
-
-