added custom exception for raising server errors for jsonrpc