ICanBoogie
  • Documentation
  • API Reference
  • ActiveRecord 4.0.x
Namespaces
  • ICanBoogie
    • ActiveRecord
      • ActiveRecordCache
      • Driver
      • Property
      • Validate
        • Reader
        • Validator
        • ValidatorProvider
Classes
  • BelongsToRelation
  • Connection
  • ConnectionCollection
  • ConnectionOptions
  • HasManyRelation
  • Model
  • ModelCollection
  • ModelProvider
  • Query
  • Relation
  • RelationCollection
  • RelationNotDefined
  • Schema
  • SchemaColumn
  • Statement
  • Table
Interfaces
  • ActiveRecordCache
  • Driver
  • Exception
Exceptions
  • ActiveRecordClassNotValid
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • DriverNotDefined
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • RecordNotValid
  • ScopeNotDefined
  • StatementInvocationFailed
  • StatementNotValid
  • UnableToSetFetchMode

Class RecordNotValid

Exception thrown when the validation of a record failed.

Exception implements Throwable
┗ LogicException
┗ ICanBoogie\ActiveRecord\RecordNotValid implements ICanBoogie\ActiveRecord\Exception uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\ActiveRecord
Located at ActiveRecord/RecordNotValid.php

Methods summary

protected get_record( void ) : ICanBoogie\ActiveRecord

Returns

ICanBoogie\ActiveRecord
protected get_errors( void ) : ICanBoogie\Validate\ValidationErrors

Returns

ICanBoogie\Validate\ValidationErrors
public __construct( ICanBoogie\ActiveRecord $record, ICanBoogie\Validate\ValidationErrors $errors, ICanBoogie\ActiveRecord\Exception $previous = null )

Parameters

$record
$errors
$previous

Overrides

Exception::__construct
protected format_message( ICanBoogie\Validate\ValidationErrors $errors ) : string

Formats exception message.

Formats exception message.

Parameters

$errors

Returns

string

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Constants summary

DEFAULT_MESSAGE : string
"The record is not valid."

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

Magic properties

public read-only $record : ICanBoogie\ActiveRecord
public read-only $errors : ICanBoogie\Validate\ValidationErrors
ActiveRecord 4.0.x – Check on GitHub – API documentation generated by ApiGen