About the errormessage

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

About the errormessage

YiHao

Dear allan:

Execue me, I have a question to ask for help:

--->Does the SANE backend provide an extension of the error message for
developers ?

The next information is extract from sane.h.
typedef enum
  {
    SANE_STATUS_GOOD = 0, /* everything A-OK */
    SANE_STATUS_UNSUPPORTED, /* operation is not supported */
    SANE_STATUS_CANCELLED, /* operation was cancelled */
    SANE_STATUS_DEVICE_BUSY, /* device is busy; try again later */
    SANE_STATUS_INVAL, /* data is invalid (includes no dev at open) */
    SANE_STATUS_EOF, /* no more data available (end-of-file) */
    SANE_STATUS_JAMMED, /* document feeder jammed */
    SANE_STATUS_NO_DOCS, /* document feeder out of documents */
    SANE_STATUS_COVER_OPEN, /* scanner cover is open */
    SANE_STATUS_IO_ERROR, /* error during device I/O */
    SANE_STATUS_NO_MEM, /* out of memory */
    SANE_STATUS_ACCESS_DENIED /* access to resource has been denied */
  }
SANE_Status;


Look forward to your help, Thank you very much.

Best Regard
Yours Sincerely, Yihao


--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: About the errormessage

m. allan noah-3
Those are the only errors which the sane protocol can support. For
more detailed information, you could print something to STDERR,
perhaps using the DBG macro.

allan

On Mon, Dec 14, 2015 at 5:04 AM,  <[hidden email]> wrote:

>
> Dear allan:
>
> Execue me, I have a question to ask for help:
>
> --->Does the SANE backend provide an extension of the error message for
> developers ?
>
> The next information is extract from sane.h.
> typedef enum
>   {
>     SANE_STATUS_GOOD = 0,       /* everything A-OK */
>     SANE_STATUS_UNSUPPORTED,    /* operation is not supported */
>     SANE_STATUS_CANCELLED,      /* operation was cancelled */
>     SANE_STATUS_DEVICE_BUSY,    /* device is busy; try again later */
>     SANE_STATUS_INVAL,          /* data is invalid (includes no dev at open) */
>     SANE_STATUS_EOF,            /* no more data available (end-of-file) */
>     SANE_STATUS_JAMMED,         /* document feeder jammed */
>     SANE_STATUS_NO_DOCS,        /* document feeder out of documents */
>     SANE_STATUS_COVER_OPEN,     /* scanner cover is open */
>     SANE_STATUS_IO_ERROR,       /* error during device I/O */
>     SANE_STATUS_NO_MEM,         /* out of memory */
>     SANE_STATUS_ACCESS_DENIED   /* access to resource has been denied */
>   }
> SANE_Status;
>
>
> Look forward to your help, Thank you very much.
>
> Best Regard
> Yours Sincerely, Yihao
>



--
"well, I stand up next to a mountain- and I chop it down with the edge
of my hand"

--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]
Loading...