001package com.nimbusds.oauth2.sdk; 002 003 004/** 005 * Serialization exception. 006 */ 007public class SerializeException extends GeneralException { 008 009 010 /** 011 * Creates a new serialisation exception. 012 * 013 * @param message The exception message. May be {@code null}. 014 */ 015 public SerializeException(final String message) { 016 017 this(message, null); 018 } 019 020 021 /** 022 * Creates a new serialisation exception. 023 * 024 * @param message The exception message. May be {@code null}. 025 * @param cause The exception cause, {@code null} if not specified. 026 */ 027 public SerializeException(final String message, final Throwable cause) { 028 029 super(message, cause); 030 } 031}