nanohttp-error.c File Reference

#include "nanohttp-logging.h"
#include "nanohttp-error.h"

Go to the source code of this file.

Classes

struct  _herror_impl_t

Typedefs

typedef _herror_impl_t herror_impl_t

Functions

herror_t herror_new (const char *func, int errcode, const char *format,...)
int herror_code (herror_t err)
const char * herror_func (herror_t err)
const char * herror_message (herror_t err)
void herror_release (herror_t err)


Typedef Documentation

typedef struct _herror_impl_t herror_impl_t
 


Function Documentation

int herror_code herror_t  err  ) 
 

Returns the code of the error.

Definition at line 85 of file nanohttp-error.c.

References _herror_impl_t::errcode, and H_OK.

Referenced by mime_streamreader_function().

const char* herror_func herror_t  err  ) 
 

Returns the name of the function, where the error was produced.

Definition at line 96 of file nanohttp-error.c.

References _herror_impl_t::func.

Referenced by mime_streamreader_function().

const char* herror_message herror_t  err  ) 
 

Returns the error message.

Definition at line 107 of file nanohttp-error.c.

References _herror_impl_t::message.

Referenced by _soap_xmlsec_init(), hrequest_new_from_socket(), hsocket_accept(), hsocket_module_init(), hsocket_open(), hsocket_recv(), hsocket_send(), httpc_get(), httpc_new(), httpc_post_begin(), httpd_init(), httpd_run(), mime_streamreader_function(), soap_client_init_args(), soap_client_invoke(), soap_nhttp_client_init_args(), soap_nhttp_register(), soap_nhttp_server_init_args(), soap_nudp_server_run(), soap_server_init_args(), soap_server_process(), soap_server_register_router(), soap_transport_client_init_args(), soap_transport_register(), soap_transport_server_init_args(), soap_transport_server_run(), and soap_xmlsec_server_init_args().

herror_t herror_new const char *  func,
int  errcode,
const char *  format,
  ...
 

Creates a new error structure.

See also:
printf

Definition at line 59 of file nanohttp-error.c.

References _herror_impl_t::errcode, _herror_impl_t::func, log_error2, and _herror_impl_t::message.

Referenced by _soap_xmlsec_init(), hresponse_new_from_socket(), hsocket_accept(), hsocket_bind(), hsocket_listen(), hsocket_open(), hsocket_recv(), hsocket_send(), hssl_client_ssl(), hssl_read(), hssl_server_ssl(), hssl_write(), http_input_stream_read(), httpc_mime_send_file(), httpd_mime_send_file(), httpd_register_secure(), hurl_parse(), mime_get_attachments(), soap_ctx_add_file(), soap_env_new_from_buffer(), soap_env_new_from_doc(), soap_env_new_with_fault(), soap_env_new_with_method(), soap_env_new_with_response(), soap_nudp_server_init_args(), soap_nudp_server_run_threaded(), soap_router_register_default_service(), soap_router_register_service(), soap_transport_add(), soap_transport_client_invoke(), soap_xmlsec_decrypt(), soap_xmlsec_encrypt(), soap_xmlsec_sign(), and soap_xmlsec_verify().

void herror_release herror_t  err  ) 
 

Frees the error structure.

Definition at line 118 of file nanohttp-error.c.

References _herror_impl_t::func.

Referenced by soap_nudp_server_run(), and soap_server_process().


Generated on Thu Jan 25 23:36:03 2007 for csoap by  doxygen 1.4.6