def from_code(code):
if code in MAPPING:<EOL><INDENT>return MAPPING[code]<EOL><DEDENT>else:<EOL><INDENT>return OpenproviderError<EOL><DEDENT>
Return the specific exception class for the given code, or
OpenproviderError if no specific exception class is available.

@param code: The error code from Openprovider.