mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-27 07:07:52 -05:00
ObjLoading/ObjWriting: Initial skeleton for loading and writing obj files
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
#include "IPakLoadException.h"
|
||||
|
||||
IPakLoadException::IPakLoadException(std::string message)
|
||||
{
|
||||
m_message = std::move(message);
|
||||
}
|
||||
|
||||
const std::string& IPakLoadException::DetailedMessage() const
|
||||
{
|
||||
return m_message;
|
||||
}
|
||||
|
||||
char const* IPakLoadException::what() const
|
||||
{
|
||||
return "There was an error when trying to load an ipak file.";
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
class IPakLoadException final : public std::exception
|
||||
{
|
||||
std::string m_message;
|
||||
|
||||
public:
|
||||
explicit IPakLoadException(std::string message);
|
||||
|
||||
const std::string& DetailedMessage() const;
|
||||
char const* what() const override;
|
||||
};
|
Reference in New Issue
Block a user