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