Class CSSCompressor.MinificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.iizix.js.build.compressors.CSSCompressor.MinificationException
- All Implemented Interfaces:
Serializable
- Enclosing class:
CSSCompressor
Constructor Summary
ConstructorsConstructorDescriptionMinificationException(String message, int line, int column) Constructor taking what went wrong, and where.MinificationException(String message, String source, int index) Constructor taking what went wrong, and where, as an index into the source being minified.Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
MinificationException
Constructor taking what went wrong, and where.- Parameters:
message- what went wrong, such as "Unterminated comment"line- the line at which it went wrong, numbered from 1column- the column at which it went wrong, numbered from 1
MinificationException
Constructor taking what went wrong, and where, as an index into the source being minified. The line and column are worked out fromindex, counting "\n", "\r\n" and "\r" as line breaks.- Parameters:
message- what went wrong, such as "Unterminated comment"source- the source being minifiedindex- the index insourceat which it went wrong- Throws:
IndexOutOfBoundsException- ifindexis negative, or greater than the length ofsource
Method Details
line
public int line()Returns the line at which minification failed, numbered from 1.- Returns:
- the line at which minification failed
column
public int column()Returns the column at which minification failed, numbered from 1.- Returns:
- the column at which minification failed