throw new BuildException( error );
throw new BuildException( error, e );
    public void execute()    {        if( null != m_ref )        {            Context context = (Context) getProject().getReference( "project.context" );            if( null == context )            {                final String error =                   "Missing 'project.context' reference.";                throw new IllegalStateException( error );            }            Library library = context.getLibrary();            try            {                Resource resource = library.getResource( m_ref );                String uri = resource.getArtifact( "plugin" ).toURI().toString();                setUri( uri );            }            catch( Exception e )            {                final String error =                   "Unexpected error while attempting to initiaze plugin task uri.";                throw new BuildException( error );            }        }                super.execute();    }