com.greenpepper.reflect.SyntaxException Maven / Gradle / Ivy
package com.greenpepper.reflect;
/**
* SyntaxException class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class SyntaxException extends RuntimeException
{
private final String name;
private String message;
/**
* Constructor for SyntaxException.
*
* @param name a {@link java.lang.String} object.
* @param message a {@link java.lang.String} object.
*/
public SyntaxException(String name, String message)
{
super();
this.message = message;
this.name = name;
}
/**
* Getter for the field message
.
*
* @return a {@link java.lang.String} object.
*/
public String getMessage()
{
String.format("Wrong Syntax for [%s]: %s", name,message);
return String.format("Wrong Syntax for [%s]: %s", name,message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy