CloneSet226


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
75220.972class_body_declarations[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17530
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseException.java
27530
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseRuntimeException.java
Next
Last
Clone Instance
1
Line Count
75
Source Line
30
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseException.java

/** If this exception is wrapped around another it is stored here. */
private Throwable _wrapee;

/**
 * Default ctor. Creates an exception with an empty string ("")
 * as its message.
 */
public BaseException() {
  this("");
}

/**
 * Ctor specifying the message.
 *
 * @param       msg      The message.
 */
public BaseException(String msg) {
  super(msg != null ? msg: "");
}

/**
 * Ctor specifying an exception that this one should
 * be wrapped around.
 *
 * @param       wrapee  The wrapped exception.
 */
public BaseException(Throwable wrapee) {
  super(wrapee);
  _wrapee = wrapee;
}

public String toString() {
  if (_wrapee != null) {
    return _wrapee.toString();
  }
  return super.toString();
}

public void printStackTrace() {
  if (_wrapee != null) {
    _wrapee.printStackTrace();
  }
  else {
    super.printStackTrace();
  }
}

public void printStackTrace(PrintStream s) {
  if (_wrapee != null) {
    _wrapee.printStackTrace(s);
  }
  else {
    super.printStackTrace(s);
  }
}

public void printStackTrace(PrintWriter wtr) {
  if (_wrapee != null) {
    _wrapee.printStackTrace(wtr);
  }
  else {
    super.printStackTrace(wtr);
  }
}


First
Previous
Clone Instance
2
Line Count
75
Source Line
30
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseRuntimeException.java

/** If this exception is wrapped around another it is stored here. */
private Throwable _wrapee;

/**
 * Default ctor. Creates an exception with an empty string ("")
 * as its message.
 */
public BaseRuntimeException() {
  this("");
}

/**
 * Ctor specifying the message.
 *
 * @param       msg      The message.
 */
public BaseRuntimeException(String msg) {
  super(msg != null ? msg: "");
}

/**
 * Ctor specifying an exception that this one should
 * be wrapped around.
 *
 * @param       wrapee  The wrapped exception.
 */
public BaseRuntimeException(Throwable wrapee) {
  super(getMessageFromException(wrapee));
  _wrapee = wrapee;
}

public String toString() {
  if (_wrapee != null) {
    return _wrapee.toString();
  }
  return super.toString();
}

public void printStackTrace() {
  if (_wrapee != null) {
    _wrapee.printStackTrace();
  }
  else {
    super.printStackTrace();
  }
}

public void printStackTrace(PrintStream s) {
  if (_wrapee != null) {
    _wrapee.printStackTrace(s);
  }
  else {
    super.printStackTrace(s);
  }
}

public void printStackTrace(PrintWriter wtr) {
  if (_wrapee != null) {
    _wrapee.printStackTrace(wtr);
  }
  else {
    super.printStackTrace(wtr);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/** If this exception is wrapped around another it is stored here. */
private Throwable _wrapee;

/**
         * Default ctor. Creates an exception with an empty string ("")
         * as its message.
         */
public [[#variable18d64d80]]() {
  this("");
}

/**
         * Ctor specifying the message.
         *
         * @param       msg      The message.
         */
public [[#variable18d64d80]](String msg) {
  super(msg != null ? msg: "");
}

/**
         * Ctor specifying an exception that this one should
         * be wrapped around.
         *
         * @param       wrapee  The wrapped exception.
         */
public [[#variable18d64d80]](Throwable wrapee) {
  super( [[#variable18d63a80]]);
  _wrapee = wrapee;
}

public String toString() {
  if (_wrapee != null) {
    return _wrapee.toString();
  }
  return super.toString();
}

public void printStackTrace() {
  if (_wrapee != null) {
    _wrapee.printStackTrace();
  }
  else {
    super.printStackTrace();
  }
}

public void printStackTrace(PrintStream s) {
  if (_wrapee != null) {
    _wrapee.printStackTrace(s);
  }
  else {
    super.printStackTrace(s);
  }
}

public void printStackTrace(PrintWriter wtr) {
  if (_wrapee != null) {
    _wrapee.printStackTrace(wtr);
  }
  else {
    super.printStackTrace(wtr);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d64d80]]
BaseException 
12[[#18d64d80]]
BaseRuntimeException 
21[[#18d63a80]]
wrapee 
22[[#18d63a80]]
getMessageFromException(wrapee)