Get the error code.
The error code can be one on the values listed in ErrorCodes
public int getErrorCode()
The error code