List of usage examples for javax.naming InsufficientResourcesException InsufficientResourcesException
public InsufficientResourcesException(String explanation)
From source file:org.restcomm.connect.java.sdk.Accounts.SubAccountCreator.java
public SubAccount create() { try {/*w ww. j a v a 2s . c om*/ 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; }