Package org.apache.isis.applib

Examples of org.apache.isis.applib.ApplicationException


            final int updateCount = statement.executeUpdate();
            statement.close();
            return updateCount;
        } catch (final SQLException e) {
            LOG.error("failed to execute " + sql, e);
            throw new ApplicationException("Error executing update", e);
        } finally {
            clearPreparedValues();
        }

    }
View Full Code Here


        }
    }

    @Override
    protected String columnType() {
        throw new ApplicationException("Should never be called");
    }
View Full Code Here

        throw new ApplicationException("Should never be called");
    }

    @Override
    protected Object preparedStatementObject(final ObjectAdapter value) {
        throw new ApplicationException("Should never be called");
    }
View Full Code Here

        return new DateTime(getTime(), Defaults.getTimeZone());
    }

    private static void ensureReplaceable() {
        if (!isReplaceable && instance != null) {
            throw new ApplicationException("Clock already set up");
        }
    }
View Full Code Here

                getMessageBroker().addWarning(message);
            }

            @Override
            public void raiseError(final String message) {
                throw new ApplicationException(message);
            }

            @Override
            public String getProperty(final String name) {
                return RuntimeContextFromSession.this.getProperty(name);
View Full Code Here

        }
    }

    @Override
    protected String columnType() {
        throw new ApplicationException("Should never be called");
    }
View Full Code Here

        throw new ApplicationException("Should never be called");
    }

    @Override
    protected Object preparedStatementObject(final ObjectAdapter value) {
        throw new ApplicationException("Should never be called");
    }
View Full Code Here

            return resultAdapter;

        } catch (RuntimeException ex) {
           
            // see if is an application-defined exception
            final ApplicationException appEx = getApplicationExceptionIfAny(ex);
            if (appEx != null) {
                getMessageBroker().setApplicationError(appEx.getMessage());

                // there's no need to abort the transaction, it will have already been done
                // (in IsisTransactionManager#executeWithinTransaction(...)).
                return null;
            }
View Full Code Here

        return new DateTime(getTime(), Defaults.getTimeZone());
    }

    private static void ensureReplaceable() {
        if (!isReplaceable && instance != null) {
            throw new ApplicationException("Clock already set up");
        }
    }
View Full Code Here

                getMessageBroker().addWarning(message);
            }

            @Override
            public void raiseError(final String message) {
                throw new ApplicationException(message);
            }

            @Override
            public String getProperty(final String name) {
                return RuntimeContextFromSession.this.getProperty(name);
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.ApplicationException

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.