Skip to content

Commit

Permalink
trying to fix how broker returns faults using exceptions; added optio…
Browse files Browse the repository at this point in the history
…n for host and instance summaries
  • Loading branch information
dmitrii committed Feb 25, 2010
1 parent ef803c6 commit fff1f66
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -2,6 +2,8 @@ package edu.ucsb.eucalyptus.msgs

import org.apache.log4j.Logger;

import com.eucalyptus.util.EucalyptusCloudException;

/*
* Software License Agreement (BSD License)
*
Expand Down Expand Up @@ -85,11 +87,11 @@ public class VMwareBrokerResponseType extends EucalyptusMessage {
withFailure (STATUS_MSG_NOT_SUPPORTED); // default error message
}

public VMwareBrokerResponseType withFailure (String msg) {
public VMwareBrokerResponseType withFailure (String msg) throws EucalyptusCloudException {
LOG.error("FAULT returned by VMwareBroker: " + msg);
this.setStatusMessage (msg);
this.set_return (false);
return this;
//this.setStatusMessage (msg);
//this.set_return (false);
throw EucalyptusCloudException(msg);
}
}

Expand Down

0 comments on commit fff1f66

Please sign in to comment.