Examples of BillingException


Examples of org.wso2.carbon.billing.core.BillingException

            }
        } catch (SQLException e) {
            String msg = "Failed to insert the invoice subscription item, item id: " +
                    item.getId() + ", invoice subscription id: " + invoiceSubscriptionId + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR
                        + ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

                payment.setId(paymentId);
            }
        } catch (SQLException e) {
            String msg = "Failed to insert the payment, payment id: " + paymentId + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR
                        + ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

            }
        } catch (SQLException e) {
            String msg = "Failed to insert the payment subscriptions, " +
                    "payment id: " + payment.getId() + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR
                        + ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }
        }
    }
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

            }
        } catch (SQLException e) {
            String msg = "Failed to get the active subscriptions for filter: " + filter + "," +
                    "customer = " + customer.getName() + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

            }
        } catch (SQLException e) {
            String msg =
                    "Failed to get the invoice for: " + "customer = " + customer.getName() + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg =
                        RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR +
                                ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

                fillInvoicePayments(invoice);
            }
        } catch (SQLException e) {
            String msg = "Failed to get the invoice for: " + "invoice id = " + invoiceId + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR +
                        ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

            }
        } catch (SQLException e) {
            String msg =
                    "Failed to get the invoice payments for: " + "invoice id = " + invoice.getId() + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR
                        + ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

            }
        } catch (SQLException e) {
            String msg = "Failed to get the invoice subscriptions for: " + "invoice id = "
                    + invoiceId + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR +
                        ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

                subscription.setSubscriptionPlan(result.getString("BC_FILTER"));
            }
        } catch (SQLException e) {
            String msg = "Failed to get the active subscription for id: " + subscriptionId + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR
                        + ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here

Examples of org.wso2.carbon.billing.core.BillingException

                subscription.setSubscriptionPlan(result.getString("BC_FILTER"));
            }
        } catch (SQLException e) {
            String msg = "Failed to get the active subscription for customer id: " + customerId + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);

        } finally {
            try {
                if (ps != null) {
                    ps.close();
                }
            } catch (SQLException ex) {
                String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR
                        + ex.getMessage();
                log.error(msg, ex);
                throw new BillingException(msg, ex);
            }

            try {
                if (result != null) {
                    result.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.