KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
exceptions::InvalidInstructionException Class Reference

Exception raised when one of the instructions has not a valid format. More...

#include <invalidinstruction_exception.hpp>

Inheritance diagram for exceptions::InvalidInstructionException:
Inheritance graph
[legend]
Collaboration diagram for exceptions::InvalidInstructionException:
Collaboration graph
[legend]

Public Member Functions

 InvalidInstructionException (const std::string &msg, std::uint32_t inst_size)
 Constructor of exception.
 
virtual const char * what () const noexcept override
 Return error message.
 
std::uint32_t size () const
 Get the value of.
 

Detailed Description

Exception raised when one of the instructions has not a valid format.

Constructor & Destructor Documentation

◆ InvalidInstructionException()

exceptions::InvalidInstructionException::InvalidInstructionException ( const std::string &  msg,
std::uint32_t  inst_size 
)
inline

Constructor of exception.

Parameters
msgmessage to show to the user
inst_Sizesize of the instruction to skip that size

Member Function Documentation

◆ size()

std::uint32_t exceptions::InvalidInstructionException::size ( ) const
inline

Get the value of.

Returns

◆ what()

virtual const char * exceptions::InvalidInstructionException::what ( ) const
inlineoverridevirtualnoexcept

Return error message.

Returns
error message in a c string style

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