Python

Formats specific

Exceptions

exception

class lief.exception
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


bad_file

class lief.bad_file
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


bad_format

class lief.bad_format
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


not_implemented

class lief.not_implemented
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


not_supported

class lief.not_supported
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


integrity_error

class lief.integrity_error
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


read_out_of_bound

class lief.read_out_of_bound
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


not_found

class lief.not_found
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


corrupted

class lief.corrupted
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


conversion_error

class lief.conversion_error
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


type_error

class lief.type_error
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


builder_error

class lief.builder_error
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


parser_error

class lief.parser_error
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


pe_error

class lief.pe_error
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.


pe_bad_section_name

class lief.pe_bad_section_name
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

Logging

class lief.Logger
disable() → None

Disable the logging module

enable() → None

Enable the logging module

set_level(level: _pylief.LOGGING_LEVEL) → None

Change the LOGGING_LEVEL (hierarchical)

set_verbose_level(level: int) → None

Change the verbose level

Logging levels

class lief.LOGGING_LEVEL(self: _pylief.LOGGING_LEVEL, arg0: int) → None
DEBUG = LOGGING_LEVEL.DEBUG
ERROR = LOGGING_LEVEL.ERROR
FATAL = LOGGING_LEVEL.FATAL
GLOBAL = LOGGING_LEVEL.GLOBAL
INFO = LOGGING_LEVEL.INFO
TRACE = LOGGING_LEVEL.TRACE
UNKNOWN = LOGGING_LEVEL.UNKNOWN
VERBOSE = LOGGING_LEVEL.VERBOSE
WARNING = LOGGING_LEVEL.WARNING