[longomatch] Add the template not found exception



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]