public function encodeException(\Exception $exception)
	{
		$string = $this->encoder->encodeException($exception);

		try {
			return $this->encrypt($string);
		}
		catch (\Exception $e) {
			if ($this->plainExceptions) {
				return $string;
			}
			throw $e;
		}
	}
public function encodeException(\Exception $exception)
	{
		$string = $this->encoder->encodeException($exception);

		try {
			return $this->encrypt($string);
		}
		catch (\Exception $e) {
			if ($this->plainExceptions) {
				return $string;
			}
			throw $e;
		}
	}
public function encodeException ( \ Exception $ exception ) { $ string = $ this -> encoder -> encodeException ( $ exception ) ; try { return $ this -> encrypt ( $ string ) ; } catch ( \ Exception $ e ) { if ( $ this -> plainExceptions ) { return $ string ; } throw $ e ; } }
Encode an exception.

@param \Exception $exception

@return string
Encode an exception .