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