Last change
on this file was 347, checked in by roby, 4 years ago |
Aggiornamento per compatibilità con php7.4
|
File size:
1.3 KB
|
Line | |
---|
1 | <?php
|
---|
2 | /**
|
---|
3 | * Html2Pdf Library - Exception class
|
---|
4 | *
|
---|
5 | * HTML => PDF converter
|
---|
6 | * distributed under the OSL-3.0 License
|
---|
7 | *
|
---|
8 | * @package Html2pdf
|
---|
9 | * @author Laurent MINGUET <webmaster@html2pdf.fr>
|
---|
10 | * @copyright 2017 Laurent MINGUET
|
---|
11 | */
|
---|
12 |
|
---|
13 | namespace Spipu\Html2Pdf\Exception;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Html Parsing Exception
|
---|
17 | */
|
---|
18 | class HtmlParsingException extends Html2PdfException
|
---|
19 | {
|
---|
20 | /**
|
---|
21 | * ERROR CODE 1
|
---|
22 | * @var int
|
---|
23 | */
|
---|
24 | const ERROR_CODE = 1;
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * invalid tag
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | protected $invalidTag;
|
---|
31 |
|
---|
32 | /**
|
---|
33 | * the line in HTML data where the error occurred
|
---|
34 | * @var int
|
---|
35 | */
|
---|
36 | protected $htmlLine;
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * set the invalid Tag
|
---|
40 | *
|
---|
41 | * @param string $value the value
|
---|
42 | *
|
---|
43 | * @return HtmlParsingException
|
---|
44 | */
|
---|
45 | public function setInvalidTag($value)
|
---|
46 | {
|
---|
47 | $this->invalidTag = $value;
|
---|
48 |
|
---|
49 | return $this;
|
---|
50 | }
|
---|
51 |
|
---|
52 | /**
|
---|
53 | * get the invalid Tag
|
---|
54 | *
|
---|
55 | * @return string
|
---|
56 | */
|
---|
57 | public function getInvalidTag()
|
---|
58 | {
|
---|
59 | return $this->invalidTag;
|
---|
60 | }
|
---|
61 |
|
---|
62 | /**
|
---|
63 | * @param int $lineNumber the value
|
---|
64 | *
|
---|
65 | * @return HtmlParsingException
|
---|
66 | */
|
---|
67 | public function setHtmlLine($lineNumber)
|
---|
68 | {
|
---|
69 | $this->htmlLine = $lineNumber;
|
---|
70 |
|
---|
71 | return $this;
|
---|
72 | }
|
---|
73 |
|
---|
74 | /**
|
---|
75 | * @return int
|
---|
76 | */
|
---|
77 | public function getHtmlLine()
|
---|
78 | {
|
---|
79 | return $this->htmlLine;
|
---|
80 | }
|
---|
81 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.