org.ogre4j
Class ItemIdentityException

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ItemIdentityException
All Implemented Interfaces:
IException, IItemIdentityException, INativeObject

public class ItemIdentityException
extends NativeObject
implements IItemIdentityException


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ItemIdentityException(InstancePointer p)
          This constructor is public for internal useage only!
protected ItemIdentityException(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ItemIdentityException(int number, java.lang.String description, java.lang.String source, java.lang.String file, long line)
           
  ItemIdentityException(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 java.lang.String getDescription()
          Returns a string with only the 'description' field of this exception.
 java.lang.String getFile()
          Gets source file name.
 java.lang.String getFullDescription()
          Returns a string with the full description of this error.
 long getLine()
          Gets line number.
 int getNumber()
          Gets the error code.
 java.lang.String getSource()
          Gets the source function.
 void operatorAssignment(IException rhs)
          Assignment operator.
 java.lang.String what()
           
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

ItemIdentityException

public ItemIdentityException(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


ItemIdentityException

protected ItemIdentityException(InstancePointer p,
                                boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


ItemIdentityException

public ItemIdentityException(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

ItemIdentityException

public ItemIdentityException(int number,
                             java.lang.String description,
                             java.lang.String source,
                             java.lang.String file,
                             long line)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

operatorAssignment

public void operatorAssignment(IException rhs)
Assignment operator.

Specified by:
operatorAssignment in interface IException

getFullDescription

public java.lang.String getFullDescription()
Returns a string with the full description of this error.

Specified by:
getFullDescription in interface IException

getNumber

public int getNumber()
Gets the error code.

Specified by:
getNumber in interface IException

getSource

public java.lang.String getSource()
Gets the source function.

Specified by:
getSource in interface IException

getFile

public java.lang.String getFile()
Gets source file name.

Specified by:
getFile in interface IException

getLine

public long getLine()
Gets line number.

Specified by:
getLine in interface IException

getDescription

public java.lang.String getDescription()
Returns a string with only the 'description' field of this exception. Use getFullDescriptionto get a full description of the error including line number, error number and what function threw the exception.

Specified by:
getDescription in interface IException

what

public java.lang.String what()
Specified by:
what in interface IException


Copyright © 2007 netAllied GmbH. All Rights Reserved.