# Namespace Soprano.Error

Module | soprano
Namespace | Soprano.Error

### classes

Soprano.Error.Error | Soprano.Error.ErrorCache | Soprano.Error.Locator

### enums

- ErrorCode { ErrorNone, ErrorInvalidArgument, ErrorInvalidStatement, ErrorNotSupported, ErrorParsingFailed, ErrorPermissionDenied, ErrorUnknown }

enum details

### methods

- convertErrorCode (code)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  code | int |

  Converts a plain error code (as for example used in Error.code()) into an ErrorCode value.

  Returns code converted to ErrorCode. If it is an unknown value, ErrorUnknown will be returned.

- errorMessage (a0)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  a0 | Soprano.Error.ErrorCode |

  Translate an error code into a human-readable error message.

### enums - detail

- ErrorCode { ErrorNone, ErrorInvalidArgument, ErrorInvalidStatement, ErrorNotSupported, ErrorParsingFailed, ErrorPermissionDenied, ErrorUnknown }

  %Soprano defines a number of error codes that are used to provide a quick success status check in methods such as Model.addStatement().

  See also Error.Error.code()

  | ErrorNone | - 0x0 | - | No error occured, i.e. success.
  | ErrorInvalidArgument | - 0x1 | - | Error indicating that a method argument was invalid. For example an invalid Statement in Model.addStatement().
  | ErrorInvalidStatement | - ErrorInvalidArgument | - | \deprecated: use ErrorInvalidArgument
  | ErrorNotSupported | - 0x2 | - | Error indicating that a certain functionality is not supported.
  | ErrorParsingFailed | - 0x3 | - | Parsing a query or an RDF serialization failed.
  | ErrorPermissionDenied | - 0x4 | - | Permission is denied. \since 2.1
  | ErrorUnknown | - 0x1000 | - | An unknown error occured.