Repository navigation
Expand file tree
/
Copy patherrors.go
More file actions
45 lines (35 loc) · 1.69 KB
/
Copy patherrors.go
File metadata and controls
45 lines (35 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package picoloom
import "errors"
// Sentinel errors for library operations.
var (
ErrEmptyMarkdown = errors.New("markdown content cannot be empty")
ErrHTMLConversion = errors.New("HTML conversion failed")
ErrPDFGeneration = errors.New("PDF generation failed")
ErrBrowserConnect = errors.New("failed to connect to browser")
ErrPageCreate = errors.New("failed to create browser page")
ErrPageLoad = errors.New("failed to load page")
ErrSignatureRender = errors.New("signature template rendering failed")
// Page settings validation errors.
ErrInvalidPageSize = errors.New("invalid page size")
ErrInvalidOrientation = errors.New("invalid orientation")
ErrInvalidMargin = errors.New("invalid margin")
// Footer validation errors.
ErrInvalidFooterPosition = errors.New("invalid footer position")
// Watermark validation errors.
ErrInvalidWatermarkColor = errors.New("invalid watermark color")
// Cover validation errors.
ErrCoverLogoNotFound = errors.New("cover logo file not found")
ErrCoverRender = errors.New("cover template rendering failed")
// Signature validation errors.
ErrSignatureImageNotFound = errors.New("signature image file not found")
// TOC validation errors.
ErrInvalidTOCDepth = errors.New("invalid TOC depth")
// Page breaks validation errors.
ErrInvalidOrphans = errors.New("invalid orphans value")
ErrInvalidWidows = errors.New("invalid widows value")
// Asset loading errors.
ErrStyleNotFound = errors.New("style not found")
ErrTemplateSetNotFound = errors.New("template set not found")
ErrIncompleteTemplateSet = errors.New("template set missing required template")
ErrInvalidAssetPath = errors.New("invalid asset path")
)