[longomatch] Add the template not found exception
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add the template not found exception
- Date: Wed, 18 Mar 2015 14:46:14 +0000 (UTC)
commit d567466a87fe10327e8905de31f5fa955d4cfe89
Author: Jorge Zapata <jorgeluis zapata gmail com>
Date: Mon Mar 16 19:42:09 2015 +0100
Add the template not found exception
LongoMatch.Core/Common/Exceptions.cs | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Exceptions.cs b/LongoMatch.Core/Common/Exceptions.cs
index c764d46..2a98a03 100644
--- a/LongoMatch.Core/Common/Exceptions.cs
+++ b/LongoMatch.Core/Common/Exceptions.cs
@@ -70,7 +70,15 @@ namespace LongoMatch.Core.Common
{
}
}
-
+
+ public class TemplateNotFoundException : Exception
+ {
+ public TemplateNotFoundException (string name):
+ base (Catalog.GetString("Template not found:\n") + name)
+ {
+ }
+ }
+
public class HotkeyAlreadyInUse: Exception
{
public HotkeyAlreadyInUse (HotKey hotkey):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]