php: 3-Attachments--updated exception handling from API