public List<String> getSourceCidrList() { if (cidrlist != null) { throw new InvalidParameterValueException( "Parameter cidrList is deprecated; if you need to open firewall rule for the specific CIDR, please refer to createFirewallRule command"); } return null; }
@Override public void check() { if (s_nodeId <= 0) { throw new CloudRuntimeException("Unable to get the management server node id"); } } }
@Override public String toString() { final String str = super.toString(); return str + "Scope=" + scope + "; id=" + id; } }
public CloudRuntimeException(final String message, final Throwable th) { super(message, th); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public CloudException() { super(); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public NioConnectionException(final String msg, final Throwable cause) { super(msg, cause); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public TaskExecutionException(final String msg, final Throwable cause) { super(msg, cause); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public ExecutionException(final String msg, final Throwable cause) { super(msg, cause); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
@Override public void execute() { throw new CloudRuntimeException("LockAccount does not lock accounts. Its implementation is disabled. Use DisableAccount instead"); }
public List<String> getAccountNames() { if (accountNames != null && projectIds != null) { throw new InvalidParameterValueException("Accounts and projectIds can't be specified together"); } return accountNames; }
public CloudRuntimeException(final String message) { super(message); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public CloudException(final String message) { super(message); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public List<Long> getProjectIds() { if (accountNames != null && projectIds != null) { throw new InvalidParameterValueException("Accounts and projectIds can't be specified together"); } return projectIds; }
protected CloudRuntimeException() { super(); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public CloudException(final String message, final Throwable cause) { super(message, cause); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
private void checkDeprecatedParameters() throws InvalidParameterValueException { if (gatewayId != null) { throw new InvalidParameterValueException("Parameter gatewayId is DEPRECATED, use vpcId and nextHop instead."); } }
private void checkDeprecatedParameters() throws InvalidParameterValueException { if (gatewayId != null) { throw new InvalidParameterValueException("Parameter gatewayId is DEPRECATED, use vpcId and nextHop instead."); } }
@Override public List<String> getSourceCidrList() { if (cidrlist != null) { throw new InvalidParameterValueException("Parameter cidrList is deprecated; if you need to open firewall " + "rule for the specific cidr, please refer to createFirewallRule command"); } return null; }
private IpAddress getIp() { final IpAddress ip = _networkService.getIp(ipAddressId); if (ip == null) { throw new InvalidParameterValueException("Unable to find IP address by ID " + ipAddressId); } return ip; }
private IpAddress getIp() { final IpAddress ip = _networkService.getIp(ipAddressId); if (ip == null) { throw new InvalidParameterValueException("Unable to find IP address by ID " + ipAddressId); } return ip; }