de.avetana.bluetooth.connection
Class BadURLFormat
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.avetana.bluetooth.connection.BadURLFormat
- All Implemented Interfaces:
- java.io.Serializable
- public class BadURLFormat
- extends java.lang.Exception
The exception which identifies non-correct URLs.
COPYRIGHT:
(c) Copyright 2004 Avetana GmbH ALL RIGHTS RESERVED.
This file is part of the Avetana bluetooth API for Linux.
The Avetana bluetooth API for Linux is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
The Avetana bluetooth API is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The development of the Avetana bluetooth API is based on the work of
Christian Lorenz (see the Javabluetooth Stack at http://www.javabluetooth.org) for some classes,
on the work of the jbluez team (see http://jbluez.sourceforge.net/) and
on the work of the bluez team (see the BlueZ linux Stack at http://www.bluez.org) for the C code.
Classes, part of classes, C functions or part of C functions programmed by these teams and/or persons
are explicitly mentioned.
Description:
This exception occurs when the programmer or the end-user are using a bad connection URL. They are
numerous reasons that can lead to this exception. For example:
- The connection URL does not represent a supported protocol
- Options in the URL are incompatible (for example encrypt=true and authenticate=false is a nonsense)
- The remote BT address is not correct
- ...
- See Also:
- Serialized Form
|
Constructor Summary |
BadURLFormat()
Creates a new BadURLFormat object. |
BadURLFormat(java.lang.String message)
Creates a new BadURLFormat object and set the exception message. |
| 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 |
BadURLFormat
public BadURLFormat()
- Creates a new BadURLFormat object.
The exception message of a default BadURLFormat Exception is:
Bad URL Format: URL must begin with protocol://localhost:UUID or protocoll://BTAdress
BadURLFormat
public BadURLFormat(java.lang.String message)
- Creates a new BadURLFormat object and set the exception message.
- Parameters:
message - The exception message