V-Gears 0
Free Final Fantasy VII engine.
UnknownOpcodeException Class Reference

Unknown opcode exception. More...

#include <DecompilerException.h>

Inheritance diagram for UnknownOpcodeException:
Collaboration diagram for UnknownOpcodeException:

Public Member Functions

 UnknownOpcodeException (unsigned int address, unsigned int opcode)
 Constructor. More...
 
virtual const char * what () const noexcept override
 Produces an error message. More...
 

Private Member Functions

virtual const char * Type () const
 Retrieves an exception identifier. More...
 

Private Attributes

unsigned int address_
 Address where the invalid opcode was found. More...
 
unsigned int opcode_
 The value of the invalid opcode. More...
 
char buffer_ [255]
 Buffer for formatting the error message. More...
 

Detailed Description

Unknown opcode exception.

Signals that an unknown opcode has been found in a script.

Constructor & Destructor Documentation

◆ UnknownOpcodeException()

UnknownOpcodeException::UnknownOpcodeException ( unsigned int  address,
unsigned int  opcode 
)

Constructor.

Parameters
[in]addressAddress where the invalid opcode was found.
[in]opcodeThe value of the invalid opcode.

Member Function Documentation

◆ Type()

const char * UnknownOpcodeException::Type ( ) const
privatevirtual

Retrieves an exception identifier.

Returns
"Opcode".

Reimplemented in UnknownSubOpcodeException.

◆ what()

const char * UnknownOpcodeException::what ( ) const
overridevirtualnoexcept

Produces an error message.

Returns
The error message.

Member Data Documentation

◆ address_

unsigned int UnknownOpcodeException::address_
private

Address where the invalid opcode was found.

◆ buffer_

char UnknownOpcodeException::buffer_[255]
mutableprivate

Buffer for formatting the error message.

◆ opcode_

unsigned int UnknownOpcodeException::opcode_
private

The value of the invalid opcode.


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