/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * and the specified cause is {@code null}. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * and the specified cause is {@code null}. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException( "A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException( "A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * and the specified cause is {@code null}. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException( "A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * and the specified cause is {@code null}. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * . */ public CoordinationException(String message, Coordination coordination, int type) { super(message); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if (type == FAILED) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * and the specified cause is {@code null}. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }
/** * Create a new Coordination Exception with a cause. * * @param message The detail message for this exception. * @param coordination The Coordination associated with this exception. * @param cause The cause associated with this exception. * @param type The type of this exception. * @throws IllegalArgumentException If the specified type is {@link #FAILED} * and the specified cause is {@code null}. */ public CoordinationException(String message, Coordination coordination, int type, Throwable cause) { super(message, cause); this.type = type; if (coordination == null) { this.id = -1L; this.name = "<>"; } else { this.id = coordination.getId(); this.name = coordination.getName(); } if ((type == FAILED) && (cause == null)) { throw new IllegalArgumentException("A cause must be specified for type FAILED"); } }