Skip to content

Commit ab42e23

Browse files
ar3emiText-CI
authored andcommitted
Refactor SvgLogMessageConstant
DEVSIX-2860 Autoported commit. Original commit hash: [66015e5f8]
1 parent 4dbc244 commit ab42e23

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

itext/itext.svg/itext/svg/exceptions/SvgLogMessageConstant.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ private SvgLogMessageConstant() {
6868

6969
public const String FONT_NOT_FOUND = "The font wasn't found.";
7070

71+
/// <summary>Message in case the font provider doesn't know about any fonts.</summary>
72+
[Obsolete]
73+
public const String FONT_PROVIDER_CONTAINS_ZERO_FONTS = "Font Provider contains zero fonts. At least one font shall be present";
74+
7175
public const String INODEROOTISNULL = "Input root value is null";
7276

7377
public const String INVALID_CLOSEPATH_OPERATOR_USE = "The close path operator (Z) may not be used before a move to operation (M)";
@@ -98,12 +102,14 @@ private SvgLogMessageConstant() {
98102

99103
public const String NOROOT = "No root found";
100104

101-
public const String PARAMETER_CANNOT_BE_NULL = "Parameters for this method cannot be null.";
105+
public const String PATH_WRONG_NUMBER_OF_ARGUMENTS = "Path operator {0} has received {1} arguments, but expects between {2} and {3} arguments. \n Resulting SVG will be incorrect.";
102106

103-
public const String ROOT_SVG_NO_BBOX = "The root svg tag needs to have a bounding box defined.";
107+
public const String PARAMETER_CANNOT_BE_NULL = "Parameters for this method cannot be null.";
104108

105109
public const String POINTS_ATTRIBUTE_INVALID_LIST = "Points attribute {0} on polyline tag does not contain a valid set of points";
106110

111+
public const String ROOT_SVG_NO_BBOX = "The root svg tag needs to have a bounding box defined.";
112+
107113
public const String TAGPARAMETERNULL = "Tag parameter must not be null";
108114

109115
public const String TRANSFORM_EMPTY = "The transformation value is empty.";
@@ -117,18 +123,12 @@ private SvgLogMessageConstant() {
117123

118124
public const String UNABLE_TO_GET_INVERSE_MATRIX_DUE_TO_ZERO_DETERMINANT = "Unable to get inverse transformation matrix and thus calculate a viewport for the element because some of the transformation matrices, which are written to document, have a determinant of zero value. A bbox of zero values will be used as a viewport for this element.";
119125

120-
public const String UNMAPPEDTAG = "Could not find implementation for tag {0}";
121-
122-
public const String UNKNOWN_TRANSFORMATION_TYPE = "Unsupported type of transformation.";
123-
124126
public const String UNABLE_TO_RETRIEVE_STREAM_WITH_GIVEN_BASE_URI = "Unable to retrieve stream with given base URI ({0}) and source path ({1})";
125127

126-
/// <summary>Message in case the font provider doesn't know about any fonts.</summary>
127-
[Obsolete]
128-
public const String FONT_PROVIDER_CONTAINS_ZERO_FONTS = "Font Provider contains zero fonts. At least one font shall be present";
129-
130128
public const String UNABLE_TO_RETRIEVE_FONT = "Unable to retrieve font:\n {0}";
131129

132-
public const String PATH_WRONG_NUMBER_OF_ARGUMENTS = "Path operator {0} has received {1} arguments, but expects between {2} and {3} arguments. \n Resulting SVG will be incorrect.";
130+
public const String UNMAPPEDTAG = "Could not find implementation for tag {0}";
131+
132+
public const String UNKNOWN_TRANSFORMATION_TYPE = "Unsupported type of transformation.";
133133
}
134134
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
598150e58d99fa9772786df8746b1ca960c1ffd5
1+
66015e5f87c792e435999d3e6d5a0fe3e5c4252e

0 commit comments

Comments
 (0)