Sha256: a2f10aea9f2bfca2a2ec2b7768c7138c0b6b49fde55a5845eedd9c87a1aab245

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

#pragma once
#include <exception>
#include "text.hpp"
namespace tomoto
{
	namespace exc
	{
		class TrainingError : public std::runtime_error
		{
		public:
			using std::runtime_error::runtime_error;
		};

		class Unimplemented : public std::runtime_error
		{
		public:
			using std::runtime_error::runtime_error;
		};

		class InvalidArgument : public std::invalid_argument
		{
		public:
			using std::invalid_argument::invalid_argument;
		};
	}
}

#define THROW_ERROR_WITH_INFO(exec, msg) do {throw exec(tomoto::text::format("%s (%d): ", __FILE__, __LINE__) + msg); } while(0)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tomoto-0.2.3 vendor/tomotopy/src/Utils/exception.h
tomoto-0.2.2 vendor/tomotopy/src/Utils/exception.h
tomoto-0.2.1 vendor/tomotopy/src/Utils/exception.h
tomoto-0.2.0 vendor/tomotopy/src/Utils/exception.h