com.genesyslab.ail.exception
Class NoAvailableDnException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.genesyslab.ail.exception.RequestFailedException
              extended by com.genesyslab.ail.exception.PreconditionException
                  extended by com.genesyslab.ail.exception.NoAvailableDnException
All Implemented Interfaces:
java.io.Serializable

public class NoAvailableDnException
extends PreconditionException

Exception thrown when no Dn is available for the requested action.

See Also:
Serialized Form

Nested Class Summary
static class NoAvailableDnException.Reason
          Constants for the reasons why no Dn is available.
 
Constructor Summary
NoAvailableDnException(java.lang.String place, Dn.Media media, NoAvailableDnException.Reason reason)
          Deprecated. since G7.0
NoAvailableDnException(java.lang.String place, NoAvailableDnException.Reason reason)
          Constructor for this exception.
 
Method Summary
 Dn.Media getMedia()
          Deprecated. since G7.0: all DNs are of type voice
 java.lang.String getPlace()
          Returns the ID of the Place on which no available Dn was found.
 NoAvailableDnException.Reason getReason()
          Returns the reason why no Dn was found.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoAvailableDnException

public NoAvailableDnException(java.lang.String place,
                              Dn.Media media,
                              NoAvailableDnException.Reason reason)
Deprecated. since G7.0

Constructor for this exception.

Parameters:
place - The place on which a Dn is required.
media - The required type of Dn.
reason - The reason why no Dn was found.

NoAvailableDnException

public NoAvailableDnException(java.lang.String place,
                              NoAvailableDnException.Reason reason)
Constructor for this exception.

Parameters:
place - The place on which a Dn is required.
reason - The reason why no Dn was found.
Since:
G7.0
Method Detail

getPlace

public java.lang.String getPlace()
Returns the ID of the Place on which no available Dn was found.


getMedia

public Dn.Media getMedia()
Deprecated. since G7.0: all DNs are of type voice

Returns the required type of Dn.


getReason

public NoAvailableDnException.Reason getReason()
Returns the reason why no Dn was found.