dynamodb: implement Error support similar to the goamz library.