Search in sources :

Example 1 with VDSErrorException

use of org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException in project ovirt-engine by oVirt.

the class HttpImageTaskVDSCommand method throwVdsErrorException.

protected void throwVdsErrorException(String message, EngineError error) {
    VDSErrorException outEx = new VDSErrorException(message);
    VDSError vdsError = new VDSError();
    vdsError.setCode(error);
    vdsError.setMessage(message);
    outEx.setVdsError(vdsError);
    throw outEx;
}
Also used : VDSErrorException(org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException) VDSError(org.ovirt.engine.core.common.errors.VDSError)

Aggregations

VDSError (org.ovirt.engine.core.common.errors.VDSError)1 VDSErrorException (org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException)1