001/*
002 * Copyright 2002-2015 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      https://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.springframework.web.socket.sockjs;
018
019import org.springframework.lang.Nullable;
020
021/**
022 * Indicates a serious failure that occurred in the SockJS implementation as opposed to
023 * in user code (e.g. IOException while writing to the response). When this exception
024 * is raised, the SockJS session is typically closed.
025 *
026 * @author Rossen Stoyanchev
027 * @since 4.0
028 */
029@SuppressWarnings("serial")
030public class SockJsTransportFailureException extends SockJsException {
031
032        /**
033         * Constructor for SockJsTransportFailureException.
034         * @param message the exception message
035         * @param cause the root cause
036         * @since 4.1.7
037         */
038        public SockJsTransportFailureException(String message, @Nullable Throwable cause) {
039                super(message, cause);
040        }
041
042        /**
043         * Constructor for SockJsTransportFailureException.
044         * @param message the exception message
045         * @param sessionId the SockJS session id
046         * @param cause the root cause
047         */
048        public SockJsTransportFailureException(String message, String sessionId, @Nullable Throwable cause) {
049                super(message, sessionId, cause);
050        }
051
052}