au.com.swz.swttocom.swt.types
Class HRESULT

java.lang.Object
  extended by au.com.swz.swttocom.swt.types.HRESULT

public class HRESULT
extends java.lang.Object

Interprets a COM HRESULT Value. A HRESULT is a 32 bit value layed out as follows:

   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  +---+-+-+-----------------------+-------------------------------+
  |Sev|C|R|     Facility          |               Code            |
  +---+-+-+-----------------------+-------------------------------+
where Sev - is the severity code 00 - Success 01 - Informational 10 - Warning 11 - Error C - is the Customer code flag R - is a reserved bit Facility - is the facility code Code - is the facility's status code

Author:
Mark Richter

Constructor Summary
HRESULT(int hresult)
           
 
Method Summary
 int getCode()
           
 int getFacility()
           
 int getInt()
           
 int getSeverity()
           
 boolean isFailed()
           
 boolean isSuccess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HRESULT

public HRESULT(int hresult)
Method Detail

isSuccess

public boolean isSuccess()

isFailed

public boolean isFailed()

getInt

public int getInt()

getCode

public int getCode()

getFacility

public int getFacility()

getSeverity

public int getSeverity()