The Sleuth Kit 4.15.0-develop
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.
static void print (FILE *a_hFile)
 Print the current error message to a file.
static void reset ()
 Clear the error number and error message.

Detailed Description

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

Member Function Documentation

◆ get()

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().

◆ print()

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().

◆ reset()

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.