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

lief.logging.set_level(level: lief.logging.LOGGING_LEVEL) → None

Change logging level

lief.logging.enable() → None

Enable the logger globally

lief.logging.disable() → None

Disable the logger globally

Logging levels

class lief.logging.LOGGING_LEVEL(self: lief.logging.LOGGING_LEVEL, arg0: int) → None

Members:

TRACE

DEBUG

CRITICAL

ERROR

WARNING

INFO

CRITICAL = <LOGGING_LEVEL.CRITICAL: 5>
DEBUG = <LOGGING_LEVEL.DEBUG: 1>
ERROR = <LOGGING_LEVEL.ERROR: 4>
INFO = <LOGGING_LEVEL.INFO: 2>
TRACE = <LOGGING_LEVEL.TRACE: 0>
WARNING = <LOGGING_LEVEL.WARNING: 3>
property name