public static SessionManagerConfigurationException fromThrowable ( Throwable cause ) { return ( cause instanceof SessionManagerConfigurationException ) ? ( SessionManagerConfigurationException ) cause : new SessionManagerConfigurationException ( cause ) ; }
Converts a Throwable to a SessionManagerConfigurationException . If the Throwable is a SessionManagerConfigurationException it will be passed through unmodified ; otherwise it will be wrapped in a new SessionManagerConfigurationException .