The Sleuth Kit  4.11.1
Static Public Member Functions | List of all members
TskError Class Reference

Allows access to most recent error message and code in the thread. More...

#include <tsk_base.h>

Static Public Member Functions

static const char * get ()
 Return the string with the current error message. More...
 
static void print (FILE *a_hFile)
 Print the current error message to a file. More...
 
static void reset ()
 Clear the error number and error message. More...
 

Detailed Description

Allows access to most recent error message and code in the thread.

Member Function Documentation

static const char* TskError::get ( )
inlinestatic

Return the string with the current error message.

The string does not end with a newline. See tsk_error_get() for details.

Returns
String with error message or NULL if there is no error

References tsk_error_get().

static void TskError::print ( FILE *  a_hFile)
inlinestatic

Print the current error message to a file.

See tsk_error_print() for details.

Parameters
a_hFileFile to print message to

References tsk_error_print().

static void TskError::reset ( )
inlinestatic

Clear the error number and error message.

See tsk_error_reset() for details.

References tsk_error_reset().


The documentation for this class was generated from the following file:

Copyright © 2007-2020 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.