ResourceError

class ResourceError

Resource errors are for any resource used by an element: memory, files, network connections, process space, … They’re typically used by source and sink elements.

Methods

class ResourceError
quark() int

Fields

class ResourceError
BUSY

Used when resource is busy.

CLOSE

Used when the resource can’t be closed.

FAILED

A general error which doesn’t fit in any other category. Make sure you add a custom message to the error call.

NOT_AUTHORIZED

Used when the resource can’t be opened due to missing authorization. (Since: 1.2.4)

NOT_FOUND

Used when the resource could not be found.

NO_SPACE_LEFT

Used when the resource has no space left.

NUM_ERRORS

The number of resource error types.

OPEN_READ

Used when resource fails to open for reading.

OPEN_READ_WRITE

Used when resource cannot be opened for both reading and writing, or either (but unspecified which).

OPEN_WRITE

Used when resource fails to open for writing.

READ

Used when the resource can’t be read from.

SEEK

Used when a seek on the resource fails.

SETTINGS

Used when settings can’t be manipulated on.

SYNC

Used when a synchronize on the resource fails.

TOO_LAZY

Do not use this except as a placeholder for deciding where to go while developing code.

WRITE

Used when the resource can’t be written to.