com.github.ibole.infrastructure.common.exception.TechnicalException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infrastructure-all Show documentation
Show all versions of infrastructure-all Show documentation
The all in one project of ibole infrastructure
The newest version!
package com.github.ibole.infrastructure.common.exception;
/*********************************************************************************************.
*
*
* Copyright 2016, iBole Inc. All rights reserved.
*
*
*********************************************************************************************/
/**
* /**
* {@link ErrorReporter} in RuntimeException form, for propagating technical error code information via exceptions.
* @author bwang ([email protected])
*
*/
public class TechnicalException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = -4679245578049447461L;
private final ErrorReporter errorReporter;
public TechnicalException(ErrorReporter errorReporter) {
this.errorReporter = errorReporter;
}
public static TechnicalException fromErrorReporter(ErrorReporter errorReporter){
return new TechnicalException(errorReporter);
}
/**
* @return the errorReporter
*/
public ErrorReporter getErrorReporter() {
return errorReporter;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy