All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.plugin.tools.model.PluginMetadataParseException Maven / Gradle / Ivy

There is a newer version: 2.1
Show newest version
package org.apache.maven.plugin.tools.model;

import java.io.File;

public class PluginMetadataParseException
    extends Exception
{
    
    static final long serialVersionUID = 1;

    private final File metadataFile;
    private final String originalMessage;

    public PluginMetadataParseException( File metadataFile, String message, Throwable cause )
    {
        super( "Error parsing file: " + metadataFile + ". Reason: " + message, cause );
        
        this.metadataFile = metadataFile;
        this.originalMessage = message;
    }

    public PluginMetadataParseException( File metadataFile, String message )
    {
        super( "Error parsing file: " + metadataFile + ". Reason: " + message );
        
        this.metadataFile = metadataFile;
        this.originalMessage = message;
    }
    
    public File getMetadataFile()
    {
        return metadataFile;
    }
    
    public String getOriginalMessage()
    {
        return originalMessage;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy