Ignore:
Timestamp:
2018-09-03T16:08:35+12:00 (6 years ago)
Author:
ak19
Message:

ProtocolPortProperties.java constructors can throw an Exception now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/util/ProtocolPortProperties.java

    r32418 r32419  
    6666    // Won't attempt to recover on error.
    6767    // This means on error, port etc values will be invalid
    68     public ProtocolPortProperties(Properties props) {
     68    public ProtocolPortProperties(Properties props) throws Exception {
    6969    this(props, false);
    7070    }
    7171
    72     public ProtocolPortProperties(Properties props, boolean recover)
     72    public ProtocolPortProperties(Properties props, boolean recover) throws Exception
    7373    {
    7474    StringBuffer msg = new StringBuffer();
     
    215215   
    216216    errorMsg = msg.toString();
     217
     218    if(!recover && errorCode != ALL_CORRECT) {
     219        throw new Exception(errorMsg);
     220    }
    217221    }
    218222   
Note: See TracChangeset for help on using the changeset viewer.