be.ac.ua.broker.utils
Class InstanceNotAvailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by be.ac.ua.broker.utils.InstanceNotAvailableException
All Implemented Interfaces:
java.io.Serializable

public class InstanceNotAvailableException
extends java.lang.Exception

This class represents the exception that is thrown when the user provides input that uses an instance type, regions or operating system that is not recognized by our application.

Author:
Vermeersch Kurt
See Also:
Serialized Form

Constructor Summary
InstanceNotAvailableException(InstanceSpecification inst)
          Constructor for InstanceNotAvailableException
InstanceNotAvailableException(java.lang.String instance)
          Constructor for InstanceNotAvailableException
InstanceNotAvailableException(java.lang.String instance, java.lang.String region, java.lang.String os)
          Constructor for InstanceNotAvailableException
 
Method Summary
 java.lang.String getInstance()
           
 java.lang.String getOS()
           
 java.lang.String getRegion()
           
 
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

InstanceNotAvailableException

public InstanceNotAvailableException(java.lang.String instance,
                                     java.lang.String region,
                                     java.lang.String os)
Constructor for InstanceNotAvailableException

Parameters:
instance - input instance type
region - input geographical region
os - input operating system

InstanceNotAvailableException

public InstanceNotAvailableException(java.lang.String instance)
Constructor for InstanceNotAvailableException

Parameters:
instance - input instance type

InstanceNotAvailableException

public InstanceNotAvailableException(InstanceSpecification inst)
Constructor for InstanceNotAvailableException

Parameters:
inst - specification of the instance that is not available
Method Detail

getInstance

public java.lang.String getInstance()
Returns:
the provided instance type by user input

getRegion

public java.lang.String getRegion()
Returns:
the provided geographical region by user input

getOS

public java.lang.String getOS()
Returns:
the provided operating system by user input