Examples of BillingException


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

                conn.close();
                //log.info("Database connection closed: ");
            } catch (SQLException e) {
                String msg = "Failed to close transaction. " + e.getMessage();
                log.error(msg, e);
                throw new BillingException(msg, e);

            } finally {
                Transaction.setStarted(false);
                Transaction.setConnection(null);
            }
View Full Code Here

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

                id = result.getInt("BC_ID");
            }
        } catch (SQLException e) {
            String msg = "Failed to check the existence of the items with name " + itemName + ".";
            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

                id = result.getInt("BC_ID");
            }
        } catch (SQLException e) {
            String msg = "Failed to check the existence of the items with name " + itemName + ".";
            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

                items.add(item);
            }
        } catch (SQLException e) {
            String msg = "Failed to get the items with name " + itemName + ".";
            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 insert the invoice for customer, "
                    + invoice.getCustomer().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 insert the item, " +
                    item.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

            //customer.setAddress(); //we dont have the address
        }catch (Exception e){
            String msg = "Failed to fill the data for customer: " +
                    customer.getId() + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);
        }
    }
View Full Code Here

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

                }
            }
        } catch (Exception e){
            String msg = "Failed to get all the customers.";
            log.error(msg, e);
            throw new BillingException(msg, e);
        }

        return customers;
    }
View Full Code Here

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

                items.put(id, item);
            }
        } catch (SQLException e) {
            String msg = "Failed to get all the items.";
            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

                customers.add(customer);
            }
        }catch(Exception e){
            String msg = "Failed to get customers for customers: " + customerName + ".";
            log.error(msg, e);
            throw new BillingException(msg, e);
        }

        return customers;
    }
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.