Class Serverinfdres

java.lang.Object
  extended by Serverinfdres

public final class Serverinfdres
extends java.lang.Object

From Scott Meyers on C++: Item 18: Make interfaces easy to use correctly and hard to use incorrectly. So, two constructors are used and exceptions are thrown for invalid accessor calls.


Constructor Summary
Serverinfdres(Serverinfo sinfo)
           
Serverinfdres(java.lang.String freason)
           
 
Method Summary
 java.lang.String getfailurereason()
           
 Serverinfo getserverinfo()
           
 boolean isvalid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serverinfdres

public Serverinfdres(java.lang.String freason)

Serverinfdres

public Serverinfdres(Serverinfo sinfo)
              throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException
Method Detail

isvalid

public boolean isvalid()

getserverinfo

public Serverinfo getserverinfo()
                         throws FeralcoreException,
                                java.lang.CloneNotSupportedException
Throws:
FeralcoreException
java.lang.CloneNotSupportedException

getfailurereason

public java.lang.String getfailurereason()
                                  throws FeralcoreException
Throws:
FeralcoreException