MAINT-5011: Derive image-load exceptions from LLContinueError.
Failure to load an image shouldn't crash the whole viewer.master
parent
993f54f6e9
commit
83eb960063
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue