MAINT-5011: Derive image-load exceptions from LLContinueError.

Failure to load an image shouldn't crash the whole viewer.
master
Nat Goodspeed 2016-08-17 15:47:08 -04:00
parent 993f54f6e9
commit 83eb960063
2 changed files with 6 additions and 4 deletions

View File

@ -34,9 +34,10 @@
#include "llexception.h"
namespace {
struct PngError: public LLException
// Failure to load an image shouldn't crash the whole viewer.
struct PngError: public LLContinueError
{
PngError(png_const_charp msg): LLException(msg) {}
PngError(png_const_charp msg): LLContinueError(msg) {}
};
} // anonymous namespace

View File

@ -38,9 +38,10 @@
#include <boost/exception/diagnostic_information.hpp>
namespace {
struct KDUError: public LLException
// Failure to load an image shouldn't crash the whole viewer.
struct KDUError: public LLContinueError
{
KDUError(const std::string& msg): LLException(msg) {}
KDUError(const std::string& msg): LLContinueError(msg) {}
};
} // anonymous namespace