be.ac.ua.broker.utils
Class InstanceNotAvailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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 |
InstanceNotAvailableException
public InstanceNotAvailableException(java.lang.String instance,
java.lang.String region,
java.lang.String os)
- Constructor for InstanceNotAvailableException
- Parameters:
instance
- input instance typeregion
- input geographical regionos
- 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
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