SwitchEV / RISE-V2G

The only fully-featured reference implementation of the Vehicle-2-Grid communication interface ISO 15118
MIT License
220 stars 92 forks source link

Fix exi schema factory exception handler #91

Open dportnrj opened 2 years ago

dportnrj commented 2 years ago

There is getStackTrace() in https://github.com/SwitchEV/RISE-V2G/blob/master/RISE-V2G-Shared/src/main/java/com/v2gclarity/risev2g/shared/exiCodec/EXISchemaFactoryExceptionHandler.java

@Override
public void fatalError(EXISchemaFactoryException eXISchemaFactoryException) throws EXISchemaFactoryException {
    logger.warn("FATAL:");
    eXISchemaFactoryException.getStackTrace();
}

instead of printStackTrace() as in error method for example:

@Override
public void error(EXISchemaFactoryException eXISchemaFactoryException) throws EXISchemaFactoryException {
    logger.warn("ERROR:");
    eXISchemaFactoryException.printStackTrace();
}