From f90d98d6ffcbb1a719ecb622513fff05dd202be5 Mon Sep 17 00:00:00 2001 From: CrawfordCurrie Date: Sun, 17 May 2009 06:12:48 +0000 Subject: [PATCH] Item1568: forgot to check this in :-( git-svn-id: http://svn.foswiki.org/branches/Release01x00@3924 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- core/lib/Foswiki/ValidationException.pm | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 core/lib/Foswiki/ValidationException.pm diff --git a/core/lib/Foswiki/ValidationException.pm b/core/lib/Foswiki/ValidationException.pm new file mode 100644 index 0000000000..68d173fd70 --- /dev/null +++ b/core/lib/Foswiki/ValidationException.pm @@ -0,0 +1,48 @@ +# See bottom of file for license and copyright information + +=begin TML + +---+ package Foswiki::ValidationException + +Exception used raise a validation error. See also Foswiki::Validation. + +=cut + +package Foswiki::ValidationException; +use Error (); +@ISA = ( 'Error' ); # base class + +use strict; + +=begin TML + +---++ ObjectMethod stringify() -> $string + +Generate a summary string. This is mainly for debugging. + +=cut + +sub stringify { + my $this = shift; + return "ValidationException: Key is invalid or has expired"; +} + +1; +__DATA__ +# Module of Foswiki - The Free and Open Source Wiki, http://foswiki.org/ +# +# Copyright (C) 2009 Foswiki Contributors. All Rights Reserved. +# Foswiki Contributors are listed in the AUTHORS file in the root +# of this distribution. NOTE: Please extend that file, not this notice. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. For +# more details read LICENSE in the root of this distribution. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# As per the GPL, removal of this notice is prohibited.