List of usage examples for javax.naming InsufficientResourcesException printStackTrace
public void printStackTrace()
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; }