class TaskException extends BackupException {

    static TaskException forStatus(int status) {
        Preconditions.checkArgument(
                status != BackupTransport.TRANSPORT_OK, "Exception based on TRANSPORT_OK");
        return new TaskException(/* stateCompromised */ false, status);
    }

    private  TaskException(Exception cause, boolean stateCompromised, int status);
    private  TaskException(boolean stateCompromised, int status);

}