/** * Static constructor. * <p> * Using static constructor methods prevents unnecessarily nesting WidgetProcessorExceptions * within WidgetProcessorExceptions. */ public static WidgetProcessorException newException( Throwable cause ) { if ( cause instanceof WidgetProcessorException ) { return (WidgetProcessorException) cause; } return new WidgetProcessorException( cause ); }
/** * Static constructor. * <p> * Using static constructor methods prevents unnecessarily nesting WidgetProcessorExceptions * within WidgetProcessorExceptions. */ public static WidgetProcessorException newException( Throwable cause ) { if ( cause instanceof WidgetProcessorException ) { return (WidgetProcessorException) cause; } return new WidgetProcessorException( cause ); }
/** * Static constructor. * <p> * For consistency with <code>WidgetProcessorException.newException( Throwable )</code>. */ public static WidgetProcessorException newException( String message ) { return new WidgetProcessorException( message ); }
/** * Static constructor. * <p> * For consistency with <code>WidgetProcessorException.newException( Throwable )</code>. */ public static WidgetProcessorException newException( String message, Throwable cause ) { return new WidgetProcessorException( message, cause ); }
/** * Static constructor. * <p> * For consistency with <code>WidgetProcessorException.newException( Throwable )</code>. */ public static WidgetProcessorException newException( String message ) { return new WidgetProcessorException( message ); }
/** * Static constructor. * <p> * For consistency with <code>WidgetProcessorException.newException( Throwable )</code>. */ public static WidgetProcessorException newException( String message, Throwable cause ) { return new WidgetProcessorException( message, cause ); }