/* * Copyright 2001-2008 Geert Bevin <gbevin[remove] at uwyn dot com> * Licensed under the Apache License, Version 2.0 (the "License") * $Id: DataLinkInputRequiredException.java 3918 2008-04-14 17:35:35Z gbevin $ */ package com.uwyn.rife.engine.exceptions; public class DataLinkInputRequiredException extends EngineException { private static final long serialVersionUID = -8348069245133806777L; private String mSiteDeclarationName = null; private String mElementId = null; private String mDestinationId = null; private boolean mSnapback = false; public DataLinkInputRequiredException(String siteDeclarationName, String elementId, String destinationId, boolean snapback) { super("The site '"+siteDeclarationName+"' has no input defined for the "+(!snapback ? "" : "snapback ")+"datalink that originates at the element '"+elementId+"'"+(null == destinationId ? "" : " towards the element '"+destinationId+"'")+", provide either a destinput or a destinbean."); mSiteDeclarationName = siteDeclarationName; mElementId = elementId; mDestinationId = destinationId; mSnapback = snapback; } public String getSiteDeclarationName() { return mSiteDeclarationName; } public String getElementId() { return mElementId; } public String getDestinationId() { return mDestinationId; } public boolean getSnapback() { return mSnapback; } }