001/*
002 * Copyright 2016-2024 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.annotations.Nullable;
021import com.unboundid.scim2.common.exceptions.ScimException;
022
023/**
024 * This exception is thrown when problems occur in the {@link ScimService}. This
025 * class allows a client application to differentiate between errors that
026 * arise on the client side from errors that come from the server.
027 */
028public class ScimServiceException extends ScimException
029{
030  /**
031   * Create a new ScimServiceException from the provided information.
032   *
033   * @param statusCode    The HTTP status code for this exception.
034   * @param errorMessage  The error message for this SCIM exception.
035   * @param cause         The cause (which is saved for later retrieval by the
036   *                      {@link #getCause()} method). A {@code null} value
037   *                      is permitted, and indicates that the cause is
038   *                      nonexistent or unknown.
039   */
040
041  public ScimServiceException(final int statusCode,
042                              @Nullable final String errorMessage,
043                              @Nullable final Throwable cause)
044  {
045    super(statusCode, null, errorMessage, cause);
046  }
047}