public ServerApiException(final ApiErrorCode errorCode, final String description) { _errorCode = errorCode; _description = description; setCSErrorCode(CSExceptionErrorCode.getCSErrCode(ServerApiException.class.getName())); }
public ServerApiException() { _errorCode = ApiErrorCode.INTERNAL_ERROR; _description = null; setCSErrorCode(CSExceptionErrorCode.getCSErrCode(ServerApiException.class.getName())); }
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 CloudException(final String message) { super(message); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public CloudException(final String message, final Throwable cause) { super(message, cause); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public CloudRuntimeException(final String message) { super(message); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
public NioConnectionException(final String msg, final Throwable cause) { super(msg, cause); setCSErrorCode(CSExceptionErrorCode.getCSErrCode(this.getClass().getName())); }
protected CloudRuntimeException() { super(); 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 validateSpecificParameters(final Map<String, String> params) { super.validateSpecificParameters(params); final Object pageSizeObj = params.get(ApiConstants.PAGE_SIZE); Long pageSize = null; if (pageSizeObj != null) { pageSize = Long.valueOf((String) pageSizeObj); } if (params.get(ApiConstants.PAGE) == null && pageSize != null && !pageSize.equals(BaseListCmd.s_pageSizeUnlimited)) { final ServerApiException ex = new ServerApiException(ApiErrorCode.PARAM_ERROR, "\"page\" parameter is required when \"pagesize\" is specified"); ex.setCSErrorCode(CSExceptionErrorCode.getCSErrCode(ex.getClass().getName())); throw ex; } else if (pageSize == null && (params.get(ApiConstants.PAGE) != null)) { throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "\"pagesize\" parameter is required when \"page\" is specified"); } } }