001/* 002 * Copyright 2016-2021 Ping Identity Corporation 003 * 004 * This program is free software; you can redistribute it and/or modify 005 * it under the terms of the GNU General Public License (GPLv2 only) 006 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) 007 * as published by the Free Software Foundation. 008 * 009 * This program is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 012 * GNU General Public License for more details. 013 * 014 * You should have received a copy of the GNU General Public License 015 * along with this program; if not, see <http://www.gnu.org/licenses>. 016 */ 017 018package com.unboundid.scim2.client; 019 020import com.unboundid.scim2.common.exceptions.ScimException; 021 022/** 023 * This exception is thrown when problems occur in the ScimService. This 024 * class allows a client application to differentiate between errors that 025 * arise on the client side from errors that come from the server. 026 */ 027public class ScimServiceException extends ScimException 028{ 029 /** 030 * Create a new ScimServiceException from the provided information. 031 * 032 * @param statusCode The HTTP status code for this exception. 033 * @param errorMessage The error message for this SCIM exception. 034 * @param cause The cause (which is saved for later retrieval by the 035 * {@link #getCause()} method). (A {@code null} value 036 * is permitted, and indicates that the cause is 037 * nonexistent or unknown.) 038 */ 039 040 public ScimServiceException(final int statusCode, 041 final String errorMessage, 042 final Throwable cause) 043 { 044 super(statusCode, null, errorMessage, cause); 045 } 046}