001package com.pusher.rest; 002 003public class PusherException extends RuntimeException { 004 005 public PusherException(String errorMessage) { 006 super(errorMessage); 007 } 008 009 public static PusherException encryptionMasterKeyRequired() { 010 return new PusherException("You cannot use encrypted channels without setting a master encryption key"); 011 } 012 013 public static PusherException cannotTriggerMultipleChannelsWithEncryption() { 014 return new PusherException("You cannot trigger to multiple channels when using encrypted channels"); 015 } 016}