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