private DisabledSessionException newNoSessionCreationException() {
        String msg = "Session creation has been disabled for the current request.  This exception indicates "
                + "that there is either a programming error (using a session when it should never be "
                + "used) or that Shiro's configuration needs to be adjusted to allow Sessions to be created "
                + "for the current request.  See the " + DisabledSessionException.class.getName() + " JavaDoc "
                + "for more.";
        return new DisabledSessionException(msg);
    }
Constructs and returns a {@link DisabledSessionException} with an appropriate message explaining why
session creation has been disabled.

@return a new DisabledSessionException with appropriate no creation message
@since 1.2
web/src/main/java/org/apache/shiro/web/servlet/ShiroHttpServletRequest.java