/*******************************************************************************
* Copyright (c) 2006-2010 eBay Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*******************************************************************************/
package org.ebayopensource.turmeric.testdomain1;
import org.ebayopensource.turmeric.common.v1.types.CommonErrorData;
import org.ebayopensource.turmeric.common.v1.types.ErrorCategory;
import org.ebayopensource.turmeric.common.v1.types.ErrorSeverity;
public class ErrorDataCollection {
private final static String ORGANIZATION = "Turmeric";
public final static CommonErrorData TestError = createCommonErrorData(107024L, (ErrorSeverity.ERROR), (ErrorCategory.APPLICATION), "TestError", "TestDomain1", "Buying", "");
private static CommonErrorData createCommonErrorData(long errorId, ErrorSeverity severity, ErrorCategory category, String errorName, String domain, String subDomain, String errorGroup) {
CommonErrorData errorData = new CommonErrorData();
errorData.setErrorId(errorId);
errorData.setSeverity(severity);
errorData.setCategory(category);
errorData.setSubdomain(subDomain);
errorData.setDomain(domain);
errorData.setErrorGroups(errorGroup);
errorData.setErrorName(errorName);
errorData.setOrganization(ORGANIZATION);
return errorData;
}
}