1 package org.apache.maven; 2 3 18 19 25 public class SettingsConfigurationException 26 extends Exception 27 { 28 private int lineNumber; 29 30 private int columnNumber; 31 32 public SettingsConfigurationException( String message ) 33 { 34 super( message ); 35 } 36 37 public SettingsConfigurationException( String message, Throwable cause ) 38 { 39 super( message, cause ); 40 } 41 42 public SettingsConfigurationException( String message, Throwable cause, int lineNumber, int columnNumber ) 43 { 44 super( message + ( lineNumber > 0 ? "\n Line: " + lineNumber : "" ) + 45 ( columnNumber > 0 ? "\n Column: " + columnNumber : "" ), cause ); 46 this.lineNumber = lineNumber; 47 this.columnNumber = columnNumber; 48 } 49 50 public int getColumnNumber() 51 { 52 return columnNumber; 53 } 54 55 public int getLineNumber() 56 { 57 return lineNumber; 58 } 59 60 61 } 62 | Popular Tags |