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