public static Error get ( final BandwidthClient client , final String id ) throws Exception { final String errorsUri = client . getUserResourceInstanceUri ( BandwidthConstants . ERRORS_URI_PATH , id ) ; final JSONObject jsonObject = toJSONObject ( client . get ( errorsUri , null ) ) ; return new Error ( client , errorsUri , jsonObject ) ; }
Factory method for Error . Returns Error object from id .