/* This file was generated by SableCC's ObjectMacro. */

package org.sablecc.sablecc.core.errormessage;

public class MGenericError {

    private final String pText;

    private final MGenericError mGenericError = this;

    public MGenericError(
            String pText) {

        if (pText == null) {
            throw new NullPointerException();
        }
        this.pText = pText;
    }

    String pText() {

        return this.pText;
    }

    private String rText() {

        return this.mGenericError.pText();
    }

    @Override
    public String toString() {

        StringBuilder sb = new StringBuilder();
        sb.append(new MSemanticErrorHead().toString());
        sb.append(System.getProperty("line.separator"));
        sb.append(rText());
        sb.append(System.getProperty("line.separator"));
        return sb.toString();
    }

}
