use of com.sedmelluq.discord.lavaplayer.tools.FriendlyException in project lavaplayer by sedmelluq.
the class DefaultAudioPlayerManager method dispatchItemLoadFailure.
private void dispatchItemLoadFailure(String identifier, AudioLoadResultHandler resultHandler, Throwable throwable) {
FriendlyException exception = ExceptionTools.wrapUnfriendlyExceptions("Something went wrong when looking up the track", FAULT, throwable);
ExceptionTools.log(log, exception, "loading item " + identifier);
resultHandler.loadFailed(exception);
}
use of com.sedmelluq.discord.lavaplayer.tools.FriendlyException in project lavaplayer by sedmelluq.
the class OggAudioTrack method process.
@Override
public void process(final LocalAudioTrackExecutor localExecutor) {
OggPacketInputStream packetInputStream = new OggPacketInputStream(inputStream, false);
log.debug("Starting to play an OGG stream track {}", getIdentifier());
localExecutor.executeProcessingLoop(() -> {
try {
processTrackLoop(packetInputStream, localExecutor.getProcessingContext());
} catch (IOException e) {
throw new FriendlyException("Stream broke when playing OGG track.", SUSPICIOUS, e);
}
}, null, true);
}
Aggregations