org.apache.ambari.view
Class UnsupportedPropertyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.ambari.view.UnsupportedPropertyException
All Implemented Interfaces:
Serializable

public class UnsupportedPropertyException
extends Exception

Thrown to indicate that the requested properties are not supported for the associated resource type.

See Also:
Serialized Form

Constructor Summary
UnsupportedPropertyException(String type, Set<String> propertyIds)
          Construct an UnsupportedPropertyException.
 
Method Summary
 Set<String> getPropertyIds()
          Get the unsupported property ids.
 String getType()
          Get the resource type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsupportedPropertyException

public UnsupportedPropertyException(String type,
                                    Set<String> propertyIds)
Construct an UnsupportedPropertyException.

Parameters:
type - the resource type
propertyIds - the unsupported property ids
Method Detail

getType

public String getType()
Get the resource type.

Returns:
the resource type

getPropertyIds

public Set<String> getPropertyIds()
Get the unsupported property ids.

Returns:
the unsupported property ids


Copyright © 2015 Apache Software Foundation. All rights reserved.