Class ResourceTypeMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.wavemaker.commons.WMRuntimeException
-
- com.wavemaker.commons.io.exception.ResourceException
-
- com.wavemaker.commons.io.exception.ResourceTypeMismatchException
-
- All Implemented Interfaces:
WMCommonException,java.io.Serializable
public class ResourceTypeMismatchException extends ResourceException
Exception thrown when aResourceis requested as a particular type but an existing resource of another type already exists.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceTypeMismatchException(ResourcePath path, boolean accessingAsFolder)Create a newResourceTypeMismatchExceptioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcePathgetPath()-
Methods inherited from class com.wavemaker.commons.WMRuntimeException
getMessage, getMessageResourceHolder
-
-
-
-
Constructor Detail
-
ResourceTypeMismatchException
public ResourceTypeMismatchException(ResourcePath path, boolean accessingAsFolder)
Create a newResourceTypeMismatchExceptioninstance.- Parameters:
path- the path begin accessedactual- the actual typeexpected- the expected type
-
-
Method Detail
-
getPath
public ResourcePath getPath()
-
-