Code example for ParseException

Methods: getMessage

0
        if (obj instanceof Time)
        { 
            return (Time)obj;
        } 
        else if (obj instanceof DERUTCTime)
        { 
            return new Time((DERUTCTime)obj);
        } 
        else if (obj instanceof DERGeneralizedTime)
        { 
            return new Time((DERGeneralizedTime)obj);
        } 
 
        throw new IllegalArgumentException("unknown object in factory: " + obj.getClass().getName());
    } 
 
    public String getTime()
    { 
        if (time instanceof DERUTCTime)
        { 
            return ((DERUTCTime)time).getAdjustedTime();