Lines Matching defs:type
33 # new($type, $info, \$text)
36 # object. The first parameter should contain the exception type. This
46 my ($class, $type, $info, $textref) = @_;
47 bless [ $type, $info, $textref ], $class;
52 # type()
59 sub type {
105 # Accessor method to return a string indicating the exception type and
126 my $type = $self->[ TYPE ];
130 while ($type) {
131 return $type if $hlut{ $type };
133 # strip .element from the end of the exception type to find a
135 $type =~ s/\.?[^\.]*$//;
152 my $exception = Template::Exception->new($type, $info);
153 $type = $exception->type;
155 ($type, $info) = $exception->type_info;
177 $context->throw('Incorrect Password'); # type 'undef'
185 type (that's the literal string 'C<undef>' rather than Perl's
190 Each exception is defined by its type and a information component
191 (e.g. error message). The type can be any identifying string and may
194 would be a specific type of the more general 'C<foo>' type.
198 =head2 type()
200 Returns the exception type.