com.lightbend.lagom.scaladsl.api.transport
Convert an error code and exception message to an exception.
Convert an error code and exception message to an exception.
This will only return Lagom built in exceptions. A custom exception that extends TransportException that has been serialized by the com.lightbend.lagom.scaladsl.api.deser.DefaultExceptionSerializer will not be returned by this method, instead, a best match based on the HTTP/WebSocket error code will be selected.
The error code.
The exception message.
A built in TransportException that best matches the given error code and exception message.