Revision: | 1.3.2.2 |
Committed: | Mon Aug 28 07:03:29 2000 UTC (24 years, 8 months ago) by williamc |
Content type: | text/plain |
Branch: | HPWbranch |
CVS Tags: | BuildSystemProto1, V0_18_0, V0_18_0model, V0_17_1, V0_18_0alpha, V0_17_0, V0_16_4, V0_16_3, V0_16_2, V0_16_1, V0_16_0, V0_15_1, V0_15_0, V0_15_0beta |
Branch point for: | V0_17branch, V0_16branch, V0_15branch |
Changes since 1.3.2.1: | +9 -0 lines |
Log Message: | Update error handling URL |
# | User | Rev | Content |
---|---|---|---|
1 | williamc | 1.1 | # |
2 | # standard url interface - dummy implementation | ||
3 | # | ||
4 | # Interface | ||
5 | # --------- | ||
6 | # new() : new object - calls init ->override init | ||
7 | # get(url, destination) : Override | ||
8 | williamc | 1.3 | # init() : Override |
9 | williamc | 1.1 | |
10 | williamc | 1.2 | package URL::URL_base; |
11 | williamc | 1.3 | use URL::URLclass; |
12 | williamc | 1.1 | require 5.001; |
13 | |||
14 | sub new { | ||
15 | my $class=shift; | ||
16 | $self={}; | ||
17 | bless $self, $class; | ||
18 | $self->init(); | ||
19 | return $self; | ||
20 | } | ||
21 | |||
22 | williamc | 1.3.2.2 | sub error { |
23 | my $self=shift; | ||
24 | |||
25 | if ( @_ ) { | ||
26 | $self->{errorstring}=$self->{errorstring}."\n".shift; | ||
27 | } | ||
28 | return (defined $self->{errorstring})?$self->{errorstring}:undef; | ||
29 | } | ||
30 | |||
31 | williamc | 1.1 | # ----- Dummy interface routines |
32 | sub init { | ||
33 | # Dummy - override as reqd | ||
34 | } |