Update exceptions to accept error details