8 |
return $self; |
return $self; |
9 |
} # new |
} # new |
10 |
|
|
11 |
sub generate_parse_error_section ($) { |
sub generate_syntax_error_section ($) { |
12 |
my $self = shift; |
my $self = shift; |
13 |
|
|
14 |
my $out = shift; |
my $out = $self->output; |
15 |
|
|
16 |
$out->start_section (id => 'parse-errors', title => 'Errors'); |
$out->start_section (id => 'parse-errors', title => 'Errors'); |
17 |
$out->start_tag ('dl'); |
$out->start_tag ('dl'); |
18 |
|
|
19 |
## TODO: |
$self->result->add_error (url => $self->input->{uri}, |
20 |
$out->start_tag ('dt', class => 'unsupported'); |
level => 'u', |
21 |
$out->url ($input->{uri}); |
layer => 'syntax', |
22 |
$out->html (q[<dd class=unsupported><strong><a href="../error-description#level-u">Not |
type => 'media type not supported', |
23 |
supported</a></strong>: |
text => $self->input->{media_type}); |
24 |
Media type |
|
|
<code class="MIME" lang="en">]); |
|
|
$out->text ($input->{media_type}); |
|
|
$out->html (q[</code> is not supported.]); |
|
25 |
$out->end_tag ('dl'); |
$out->end_tag ('dl'); |
26 |
$out->end_section; |
$out->end_section; |
27 |
|
} # generate_syntax_error_section |
28 |
|
|
29 |
my $result = $self->result; |
sub generate_source_string_section ($) { } |
|
|
|
|
add_error (char => {level => 'u'} => $result); |
|
|
add_error (syntax => {level => 'u'} => $result); |
|
|
add_error (structure => {level => 'u'} => $result); |
|
|
} # generate_parse_error_section |
|
30 |
|
|
31 |
sub generate_structure_error_section ($) { } |
sub generate_structure_error_section ($) { } |
32 |
|
|