Example usage for javax.naming InsufficientResourcesException printStackTrace

List of usage examples for javax.naming InsufficientResourcesException printStackTrace

Introduction

In this page you can find the example usage for javax.naming InsufficientResourcesException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.restcomm.connect.java.sdk.Accounts.SubAccountCreator.java

public SubAccount create() {
    try {// www .java  2s .c o m
        if (email && password && role) {
            Restcomm.sendRequest(request);
            //System.out.println(Restcomm.getJSONResponse());
            return (SubAccount) Utilities.AccountObject(Restcomm.getJSONResponse());
        } else
            throw new InsufficientResourcesException(
                    "You need to specify Email,Password and Role for this request");
    } catch (InsufficientResourcesException e) {
        System.out.println(e);
        e.printStackTrace();
    }
    return null;

}