Add error century code of '8xx' for vCloud generated exception messages

This commit is contained in:
Andrew Donald Kennedy 2012-02-21 16:49:13 +00:00
parent 34459605fc
commit be80a60b88
1 changed files with 2 additions and 2 deletions

View File

@ -33,13 +33,13 @@ public class VCloudDirectorException extends RuntimeException {
private final Task task;
public VCloudDirectorException(Error error) {
super("Error: " + error.getMessage());
super("ERR-801: Error: " + error.getMessage());
this.error = error;
this.task = null;
}
public VCloudDirectorException(Task task) {
super("Task error: " + task.getError().getMessage());
super("ERR-802: Task error: " + task.getError().getMessage());
this.error = task.getError();
this.task = task;
}