/** * A utility to handle a callback which is unsupported. Optional callbacks will be ignored, otherwise the * exception will be thrown. In the case of optional callbacks, this method <em>will</em> return. * * @param callback the callback which is not supported * @throws UnsupportedCallbackException if the callback is not optional */ public static void unsupported(Callback callback) throws UnsupportedCallbackException { if (! isOptional(callback)) { throw new FastUnsupportedCallbackException(callback); } } }
/** * A utility to handle a callback which is unsupported. Optional callbacks will be ignored, otherwise the * exception will be thrown. In the case of optional callbacks, this method <em>will</em> return. * * @param callback the callback which is not supported * @throws UnsupportedCallbackException if the callback is not optional */ public static void unsupported(Callback callback) throws UnsupportedCallbackException { if (! isOptional(callback)) { throw new FastUnsupportedCallbackException(callback); } } }
/** * A utility to handle a callback which is unsupported. Optional callbacks will be ignored, otherwise the * exception will be thrown. In the case of optional callbacks, this method <em>will</em> return. * * @param callback the callback which is not supported * @throws UnsupportedCallbackException if the callback is not optional */ public static void unsupported(Callback callback) throws UnsupportedCallbackException { if (! isOptional(callback)) { throw new FastUnsupportedCallbackException(callback); } } }
/** * A utility to handle a callback which is unsupported. Optional callbacks will be ignored, otherwise the * exception will be thrown. In the case of optional callbacks, this method <em>will</em> return. * * @param callback the callback which is not supported * @throws UnsupportedCallbackException if the callback is not optional */ public static void unsupported(Callback callback) throws UnsupportedCallbackException { if (! isOptional(callback)) { throw new FastUnsupportedCallbackException(callback); } } }