Package org.jrebirth.af.core.exception

Examples of org.jrebirth.af.core.exception.CoreRuntimeException


            if (this.object == null) {
                // Build the current default object by reflection if it hadn't been provided into the key
                try {
                    this.object = (O) ClassUtility.buildGenericType(this.getClass(), OBJECT_EXCLUDED_CLASSES);
                } catch (final CoreException e) {
                    throw new CoreRuntimeException("Failure while building the bindable object for model " + getClass(), e);
                }
            }
        }
    }
View Full Code Here


                noHookFound = false;
            }
        }
        // Stop the process if no placeholder have been found to attach the model-view created
        if (noHookFound) {
            throw new CoreRuntimeException("LinkUi must be called with either JRebirthWaves.ATTACH_UI_NODE_PLACEHOLDER or JRebirthWaves.ADD_UI_CHILDREN_PLACEHOLDER Wave Data provided");
        }

        node.addEventHandler(eventType, new AbstractNamedEventHandler<E>("LinkUi") {
            /**
             * Handle the triggered event.
View Full Code Here

     */
    @Override
    public void setStatus(final Status status) {
        synchronized (this) {
            if (this.statusProperty.get() == status) {
                throw new CoreRuntimeException("The status " + status.toString() + " has been already set for this wave " + toString());
            } else {
                this.statusProperty.set(status);
                fireStatusChanged();
            }
        }
View Full Code Here

            } else {
                node = (Node) fxmlLoader.load(fxmlLoader.getLocation().openStream());
            }

        } catch (final IOException e) {
            throw new CoreRuntimeException(FXML_NODE_DOESNT_EXIST.getText(fxmlPath), e);
        }

        final FXMLController<M, ?> fxmlController = (FXMLController<M, ?>) fxmlLoader.getController();

        // It's tolerated to have a null controller for an fxml node
        if (fxmlController != null) {
            // The fxml controller must extends AbstractFXMLController
            if (!error && !(fxmlLoader.getController() instanceof AbstractFXMLController)) {
                throw new CoreRuntimeException(BAD_FXML_CONTROLLER_ANCESTOR.getText(fxmlLoader.getController().getClass().getCanonicalName()));
            }
            // Link the View component with the fxml controller
            fxmlController.setModel(model);
        }
View Full Code Here

                // Display special markups
                res = "<!!" + builder().getParam(this).toString() + "!!>";

                // In developer mode throw a runtime exception to stop the current task
                if (JRebirthParameters.DEVELOPER_MODE.get()) {
                    throw new CoreRuntimeException("Bad formatted Message key : " + res, e);
                }
            }
        }
        return res;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public void persist() {
        throw new CoreRuntimeException("Not Implemented yet");
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public void persist() {
        throw new CoreRuntimeException("Not Implemented yet");
    }
View Full Code Here

        this.object = object;
        this.parameterName = parameterName;

        // Object must be not null
        if (object == null) {
            throw new CoreRuntimeException("ObjectParameter must have a non null object for parameter : " + this.parameterName);
        }
    }
View Full Code Here

    private Object parseClassParameter(final String serializedObject) {
        Object res = null;
        try {
            res = Class.forName(serializedObject);
        } catch (final ClassNotFoundException e) {
            throw new CoreRuntimeException("Impossible to load class " + serializedObject, e);
        }
        return res;
    }
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.exception.CoreRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.