24 lines
532 B
Java
24 lines
532 B
Java
package com.ddf.vodsystem.exceptions;
|
|
|
|
public class ClipMediaUnavailable extends RuntimeException {
|
|
private final Long clipId;
|
|
|
|
public ClipMediaUnavailable(Long clipId, String message) {
|
|
this(clipId, message, null);
|
|
}
|
|
|
|
public ClipMediaUnavailable(Long clipId, String message, Throwable cause) {
|
|
super(message, cause);
|
|
this.clipId = clipId;
|
|
}
|
|
|
|
/**
|
|
* Returns the ID of the clip whose media was unavailable.
|
|
*
|
|
* @return the affected clip's ID
|
|
*/
|
|
public Long getClipId() {
|
|
return clipId;
|
|
}
|
|
}
|