/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: RestException.java,v 1.1 2009/11/12 18:37:35 veiming Exp $
*/
/*
* Portions Copyrighted 2011 ForgeRock AS
*/
/**
* Entitlement related exception.
*/
private int errorCode;
/**
* Creates an entitlement exception.
*
* @param errorCode Error code.
*/
}
/**
* Creates an entitlement exception.
*
* @param errorCode Error code.
* @param params Parameters for formatting the message string.
*/
}
/**
* Creates an entitlement exception.
*
* @param errorCode Error code.
* @param cause Root cause.
*/
super(cause);
}
/**
* Creates an entitlement exception.
*
* @param errorCode Error code.
* @param params Parameters for formatting the message string.
* @param cause Root cause.
*/
{
super(cause);
}
/**
* Returns error code.
*
* @return error code.
*/
public int getErrorCode() {
return errorCode;
}
/**
* Returns exception message.
*
* @return exception message.
*/
return message;
}
/**
* Returns localized exception message.
*
* @return localized exception message.
*/
return message;
}
/**
* Returns localized exception message.
*
* @param locale Locale of the message.
* @return localized exception message.
*/
msg;
}
}