class WalletExceptionConverter implements ExceptionConverter<HerajException> {

  @Override
  public HerajException convert(final Throwable t) {
    logger.debug("Handle exception {}", t.toString());
    if (t instanceof HerajException) {
      return (HerajException) t;
    } else {
      return new HerajException(t);
    }
  }

}