develooper Front page | perl.cvs.p5ee | Postings from April 2013

[svn:p5ee] r15612 - in p5ee/trunk/App-Widget/lib/App: . SessionObject TemplateEngine Widget

From:
spadkins
Date:
April 1, 2013 21:51
Subject:
[svn:p5ee] r15612 - in p5ee/trunk/App-Widget/lib/App: . SessionObject TemplateEngine Widget
Message ID:
20130401215104.43394184B9C@xx12.develooper.com
Author: spadkins
Date: Mon Apr  1 14:51:04 2013
New Revision: 15612

Modified:
   p5ee/trunk/App-Widget/lib/App/SessionObject/Content.pm
   p5ee/trunk/App-Widget/lib/App/TemplateEngine.pm
   p5ee/trunk/App-Widget/lib/App/TemplateEngine/TemplateToolkit.pm
   p5ee/trunk/App-Widget/lib/App/Widget.pm
   p5ee/trunk/App-Widget/lib/App/Widget/Template.pm

Log:
added copyright. cleaned up inaccurate doc entries about exceptions.

Modified: p5ee/trunk/App-Widget/lib/App/SessionObject/Content.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/SessionObject/Content.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/SessionObject/Content.pm	Mon Apr  1 14:51:04 2013
@@ -38,8 +38,6 @@
     * Signature: $content = $self->content();
     * Param:     void
     * Return:    $content   any
-    * Throws:    App::Exception
-    * Since:     0.01
 
     $content = $so->content();
     if (ref($content)) {
@@ -80,8 +78,6 @@
     * Signature: $content_type = $service->content_type();
     * Param:     void
     * Return:    $content_type   string
-    * Throws:    App::Exception
-    * Since:     0.01
 
     Sample Usage:
 

Modified: p5ee/trunk/App-Widget/lib/App/TemplateEngine.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/TemplateEngine.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/TemplateEngine.pm	Mon Apr  1 14:51:04 2013
@@ -75,9 +75,6 @@
 A TemplateEngine Service is a means by which a template (such as an
 HTML template) may be rendered (with variables interpolated).
 
- * Throws: App::Exception::TemplateEngine
- * Since:  0.01
-
 =head2 Class Design
 
 ...
@@ -120,8 +117,6 @@
     * Signature: $text = $template_engine->render($template);
     * Param:     $template          string
     * Return:    $text              text
-    * Throws:    App::Exception::TemplateEngine
-    * Since:     0.01
 
     Sample Usage:
 
@@ -160,7 +155,6 @@
     * Signature: $service_type = App::TemplateEngine->service_type();
     * Param:     void
     * Return:    $service_type  string
-    * Since:     0.01
 
     $service_type = $template_engine->service_type();
 
@@ -177,8 +171,6 @@
     * Signature: $template_text = $template_engine->read_template($template);
     * Param:     $template          string
     * Return:    $template_text     text
-    * Throws:    App::Exception::TemplateEngine
-    * Since:     0.01
 
     Sample Usage:
 
@@ -235,8 +227,6 @@
     * Signature: $values = $template_engine->prepare_values();
     * Param:     void
     * Return:    $values            {}
-    * Throws:    App::Exception::TemplateEngine
-    * Since:     0.01
 
     Sample Usage:
 
@@ -272,8 +262,6 @@
     * Param:     $template_text     string
     * Param:     $values            {}
     * Return:    $text              text
-    * Throws:    App::Exception::TemplateEngine
-    * Since:     0.01
 
     Sample Usage:
 
@@ -352,6 +340,7 @@
 
 =head1 ACKNOWLEDGEMENTS
 
+ * (c) 2010 Stephen Adkins
  * Author:  Stephen Adkins <spadkins@gmail.com>
  * License: This is free software. It is licensed under the same terms as Perl itself.
 

Modified: p5ee/trunk/App-Widget/lib/App/TemplateEngine/TemplateToolkit.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/TemplateEngine/TemplateToolkit.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/TemplateEngine/TemplateToolkit.pm	Mon Apr  1 14:51:04 2013
@@ -42,9 +42,6 @@
 
 =head1 Class: App::TemplateEngine
 
- * Throws: App::Exception::TemplateEngine
- * Since:  0.01
-
 A TemplateEngine Service is a means by which a template (such as an
 HTML template) may be rendered (with variables interpolated).
 
@@ -88,8 +85,6 @@
     * Signature: $text = $template_engine->render($template);
     * Param:     $template          string
     * Return:    $text              text
-    * Throws:    App::Exception::TemplateEngine
-    * Since:     0.01
 
     Sample Usage:
 
@@ -124,8 +119,6 @@
     * Signature: $values = $template_engine->prepare_values();
     * Param:     void
     * Return:    $values            {}
-    * Throws:    App::Exception::TemplateEngine
-    * Since:     0.01
 
     Sample Usage:
 
@@ -159,6 +152,7 @@
 
 =head1 ACKNOWLEDGEMENTS
 
+ * (c) 2010 Stephen Adkins
  * Author:  Stephen Adkins <spadkins@gmail.com>
  * License: This is free software. It is licensed under the same terms as Perl itself.
 

Modified: p5ee/trunk/App-Widget/lib/App/Widget.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/Widget.pm	Mon Apr  1 14:51:04 2013
@@ -42,8 +42,6 @@
     * Param:     event         string
     * Param:     @args         ARRAY
     * Return:    $handled      boolean
-    * Throws:    App::Exception
-    * Since:     0.01
 
     $handled = $widget->handle_event($widget_name, $event, @args);
 
@@ -96,8 +94,6 @@
     * Signature: $content = $self->content();
     * Param:     void
     * Return:    $content   any
-    * Throws:    App::Exception
-    * Since:     0.01
 
     $content = $so->content();
     if (ref($content)) {
@@ -120,15 +116,7 @@
     };
     if ($@) {
         my ($name, $msg);
-        if (ref($@) eq "") {  # i.e. a string thrown with "die"
-            $msg = $@;
-        }
-        elsif ($@->isa("App::Exception")) {
-            $msg = $@->error . "\n" . $@->trace->as_string . "\n";
-        }
-        else {
-            $@->rethrow();
-        }
+        $msg = $@;
         $msg =~ s{&}{&amp;}gso;
         $msg =~ s{<}{&lt;}gso;
         $msg =~ s{>}{&gt;}gso;
@@ -254,8 +242,6 @@
     * Param:     $content        string
     * Param:     $extension      string
     * Return:    void
-    * Throws:    App::Exception
-    * Since:     0.01
 
     Sample Usage:
 
@@ -281,8 +267,6 @@
     * Signature: $content_type = $service->content_type();
     * Param:     void
     * Return:    $content_type   string
-    * Throws:    App::Exception
-    * Since:     0.01
 
     Sample Usage:
 
@@ -335,8 +319,6 @@
     * Signature: $text = $widget->user_event_name($event,@args);
     * Param:     void
     * Return:    $text              text
-    * Throws:    App::Exception::Widget
-    * Since:     0.01
 
     Sample Usage:
 
@@ -371,8 +353,6 @@
     * Signature: $text = $widget->callback_event_tag($event,@args);
     * Param:     void
     * Return:    $text              text
-    * Throws:    App::Exception::Widget
-    * Since:     0.01
 
     Sample Usage:
 

Modified: p5ee/trunk/App-Widget/lib/App/Widget/Template.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget/Template.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/Widget/Template.pm	Mon Apr  1 14:51:04 2013
@@ -53,8 +53,6 @@
     * Signature: $html = $w->html();
     * Param:  void
     * Return: $html        text
-    * Throws: App::Blue::Exception
-    * Since:  0.01
 
     Sample Usage: 
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About