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 019/** 020 * Indicates a serious failure that occurred in the SockJS implementation as opposed to 021 * in user code (e.g. IOException while writing to the response). When this exception 022 * is raised, the SockJS session is typically closed. 023 * 024 * @author Rossen Stoyanchev 025 * @since 4.0 026 */ 027@SuppressWarnings("serial") 028public class SockJsTransportFailureException extends SockJsException { 029 030 /** 031 * Constructor for SockJsTransportFailureException. 032 * @param message the exception message 033 * @param cause the root cause 034 * @since 4.1.7 035 */ 036 public SockJsTransportFailureException(String message, Throwable cause) { 037 super(message, cause); 038 } 039 040 /** 041 * Constructor for SockJsTransportFailureException. 042 * @param message the exception message 043 * @param sessionId the SockJS session id 044 * @param cause the root cause 045 */ 046 public SockJsTransportFailureException(String message, String sessionId, Throwable cause) { 047 super(message, sessionId, cause); 048 } 049 050}