1<?php 2 3// Protocol Buffers - Google's data interchange format 4// Copyright 2008 Google Inc. All rights reserved. 5// 6// Use of this source code is governed by a BSD-style 7// license that can be found in the LICENSE file or at 8// https://developers.google.com/open-source/licenses/bsd 9 10namespace Google\Protobuf\Internal; 11 12class GPBDecodeException extends \Exception 13{ 14 public function __construct( 15 $message, 16 $code = 0, 17 \Exception $previous = null) 18 { 19 parent::__construct( 20 "Error occurred during parsing: " . $message, 21 $code, 22 $previous); 23 } 24} 25