JSR-043: JTAPI-1.4

javax.telephony.media
Class BadServiceNameException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.telephony.media.MediaException
                    |
                    +--javax.telephony.media.MediaServiceException
                          |
                          +--javax.telephony.media.MediaBindException
                                |
                                +--javax.telephony.media.NoServiceAssignedException
                                      |
                                      +--javax.telephony.media.BadServiceNameException
All Implemented Interfaces:
java.io.Serializable

public class BadServiceNameException
extends NoServiceAssignedException

Thrown when the disposition or serviceName String is ill-formed. This Exception indicates the String cannot be (or be mapped to) a legal service name.

Conceptually, this is like getting a reorder tone when dialing a number that is not in the dial plan.

Since:
JTAPI-1.3
See Also:
Serialized Form

Constructor Summary
BadServiceNameException()
          Constructs a BadServiceNameException with no specified detail message.
BadServiceNameException(java.lang.String s)
          Constructs a BadServiceNameException with the specified detail message.
BadServiceNameException(java.lang.String s, MediaEvent event)
          Construct a BadServiceNameException with the specified detail message and Event.
 
Methods inherited from class javax.telephony.media.MediaException
getEvent
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadServiceNameException

public BadServiceNameException()
Constructs a BadServiceNameException with no specified detail message.

BadServiceNameException

public BadServiceNameException(java.lang.String s)
Constructs a BadServiceNameException with the specified detail message.
Parameters:
s - the detail message.

BadServiceNameException

public BadServiceNameException(java.lang.String s,
                               MediaEvent event)
Construct a BadServiceNameException with the specified detail message and Event.
Parameters:
s - the detail message describing the error in the event.
event - a MediaEvent

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org