Coverage Report - org.apache.shiro.session.InvalidSessionException
 
Classes in this File Line Coverage Branch Coverage Complexity
InvalidSessionException
25%
2/8
N/A
1
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements.  See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership.  The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License.  You may obtain a copy of the License at
 9  
  *
 10  
  *     http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied.  See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 package org.apache.shiro.session;
 20  
 
 21  
 /**
 22  
  * Exception thrown when attempting to interact with the system under an established session
 23  
  * when that session is considered invalid.  The meaning of the term 'invalid' is based on
 24  
  * application behavior.  For example, a Session is considered invalid if it has been explicitly
 25  
  * stopped (e.g. when a user logs-out or when explicitly
 26  
  * {@link Session#stop() stopped} programmatically.  A Session can also be
 27  
  * considered invalid if it has expired.
 28  
  *
 29  
  * @see StoppedSessionException
 30  
  * @see ExpiredSessionException
 31  
  * @see UnknownSessionException
 32  
  * @since 0.1
 33  
  */
 34  
 public class InvalidSessionException extends SessionException {
 35  
 
 36  
     /**
 37  
      * Creates a new InvalidSessionException.
 38  
      */
 39  
     public InvalidSessionException() {
 40  0
         super();
 41  0
     }
 42  
 
 43  
     /**
 44  
      * Constructs a new InvalidSessionException.
 45  
      *
 46  
      * @param message the reason for the exception
 47  
      */
 48  
     public InvalidSessionException(String message) {
 49  7
         super(message);
 50  7
     }
 51  
 
 52  
     /**
 53  
      * Constructs a new InvalidSessionException.
 54  
      *
 55  
      * @param cause the underlying Throwable that caused this exception to be thrown.
 56  
      */
 57  
     public InvalidSessionException(Throwable cause) {
 58  0
         super(cause);
 59  0
     }
 60  
 
 61  
     /**
 62  
      * Constructs a new InvalidSessionException.
 63  
      *
 64  
      * @param message the reason for the exception
 65  
      * @param cause   the underlying Throwable that caused this exception to be thrown.
 66  
      */
 67  
     public InvalidSessionException(String message, Throwable cause) {
 68  0
         super(message, cause);
 69  0
     }
 70  
 
 71  
 }